ory-client 0.2.0.alpha48 → 0.2.0.alpha60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +123 -99
- data/docs/{AcceptConsentRequest.md → AcceptOAuth2ConsentRequest.md} +3 -3
- data/docs/{ConsentRequestSession.md → AcceptOAuth2ConsentRequestSession.md} +2 -2
- data/docs/{AcceptLoginRequest.md → AcceptOAuth2LoginRequest.md} +2 -2
- data/docs/AdminApi.md +15 -2093
- data/docs/AdminCreateIdentityBody.md +1 -1
- data/docs/{JsonWebKeySetGeneratorRequest.md → AdminCreateJsonWebKeySetBody.md} +2 -2
- data/docs/AdminCreateSelfServiceRecoveryCodeBody.md +20 -0
- data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +1 -1
- data/docs/{TrustJwtGrantIssuerBody.md → AdminTrustOAuth2JwtGrantIssuerBody.md} +3 -3
- data/docs/CourierMessageStatus.md +15 -0
- data/docs/CourierMessageType.md +15 -0
- data/docs/GetNamespacesResponse.md +18 -0
- data/docs/HandledOAuth2ConsentRequest.md +18 -0
- data/docs/{RequestWasHandledResponse.md → HandledOAuth2LoginRequest.md} +2 -2
- data/docs/HandledOAuth2LogoutRequest.md +18 -0
- data/docs/Headers.md +18 -0
- data/docs/IDTokenClaims.md +44 -0
- data/docs/Identity.md +2 -2
- data/docs/{OAuth2TokenIntrospection.md → IntrospectedOAuth2Token.md} +2 -2
- data/docs/JsonError.md +1 -7
- data/docs/{JSONWebKey.md → JsonWebKey.md} +2 -2
- data/docs/JsonWebKeySet.md +18 -0
- data/docs/Message.md +36 -0
- data/docs/Namespace.md +18 -0
- data/docs/NamespacesApi.md +74 -0
- data/docs/NormalizedProjectRevision.md +21 -1
- data/docs/OAuth2AccessRequest.md +24 -0
- data/docs/OAuth2ApiError.md +24 -0
- data/docs/OAuth2Client.md +26 -2
- data/docs/{ConsentRequest.md → OAuth2ConsentRequest.md} +3 -3
- data/docs/{OpenIDConnectContext.md → OAuth2ConsentRequestOpenIDConnectContext.md} +2 -2
- data/docs/OAuth2ConsentSession.md +38 -0
- data/docs/OAuth2ConsentSessionExpiresAt.md +26 -0
- data/docs/{LoginRequest.md → OAuth2LoginRequest.md} +3 -3
- data/docs/{LogoutRequest.md → OAuth2LogoutRequest.md} +2 -2
- data/docs/{OauthTokenResponse.md → OAuth2TokenResponse.md} +2 -2
- data/docs/{WellKnown.md → OidcConfiguration.md} +6 -2
- data/docs/{UserinfoResponse.md → OidcUserInfo.md} +2 -2
- data/docs/Pagination.md +4 -0
- data/docs/PaginationHeaders.md +20 -0
- data/docs/ParseError.md +22 -0
- data/docs/PostCheckOplSyntaxResponse.md +18 -0
- data/docs/{PreviousConsentSession.md → PreviousOAuth2ConsentSession.md} +4 -4
- data/docs/ReadApi.md +24 -24
- data/docs/{RecoveryAddress.md → RecoveryIdentityAddress.md} +2 -2
- data/docs/RefreshTokenHookRequest.md +4 -0
- data/docs/RefreshTokenHookResponse.md +1 -1
- data/docs/{RejectRequest.md → RejectOAuth2Request.md} +2 -2
- data/docs/SelfServiceError.md +1 -1
- data/docs/SelfServiceFlowExpiredError.md +1 -1
- data/docs/SelfServiceLoginFlow.md +1 -1
- data/docs/SelfServiceRecoveryCode.md +22 -0
- data/docs/SelfServiceRecoveryFlow.md +2 -2
- data/docs/SelfServiceRegistrationFlow.md +1 -1
- data/docs/SelfServiceSettingsFlow.md +1 -1
- data/docs/SelfServiceVerificationFlow.md +1 -1
- data/docs/Session.md +3 -1
- data/docs/SessionDevice.md +7 -1
- data/docs/SourcePosition.md +20 -0
- data/docs/SubmitSelfServiceRecoveryFlowBody.md +4 -1
- data/docs/SubmitSelfServiceRecoveryFlowWithCodeMethodBody.md +24 -0
- data/docs/{CompletedRequest.md → SuccessfulOAuth2RequestResponse.md} +2 -2
- data/docs/SyntaxApi.md +77 -0
- data/docs/{TrustedJwtGrantIssuer.md → TrustedOAuth2JwtGrantIssuer.md} +3 -3
- data/docs/{TrustedJsonWebKey.md → TrustedOAuth2JwtGrantJsonWebKey.md} +2 -2
- data/docs/UiNode.md +2 -2
- data/docs/UiNodeInputAttributes.md +2 -2
- data/docs/UpdateOAuth2ClientLifespans.md +40 -0
- data/docs/V0alpha2Api.md +3473 -334
- data/docs/VerifiableIdentityAddress.md +1 -1
- data/docs/WriteApi.md +12 -12
- data/lib/ory-client/api/admin_api.rb +14 -2108
- data/lib/ory-client/api/metadata_api.rb +1 -1
- data/lib/ory-client/api/namespaces_api.rb +79 -0
- data/lib/ory-client/api/read_api.rb +13 -13
- data/lib/ory-client/api/syntax_api.rb +90 -0
- data/lib/ory-client/api/v0alpha2_api.rb +3336 -368
- data/lib/ory-client/api/write_api.rb +7 -7
- data/lib/ory-client/api_client.rb +1 -1
- data/lib/ory-client/api_error.rb +1 -1
- data/lib/ory-client/configuration.rb +8 -1
- data/lib/ory-client/models/{accept_consent_request.rb → accept_o_auth2_consent_request.rb} +5 -5
- data/lib/ory-client/models/{consent_request_session.rb → accept_o_auth2_consent_request_session.rb} +4 -4
- data/lib/ory-client/models/{accept_login_request.rb → accept_o_auth2_login_request.rb} +4 -4
- data/lib/ory-client/models/active_project.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_body.rb +2 -2
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_config.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_provider.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_password.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_password_config.rb +1 -1
- data/lib/ory-client/models/{json_web_key_set_generator_request.rb → admin_create_json_web_key_set_body.rb} +4 -4
- data/lib/ory-client/models/admin_create_self_service_recovery_code_body.rb +252 -0
- data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +2 -1
- data/lib/ory-client/models/admin_identity_import_credentials.rb +1 -1
- data/lib/ory-client/models/{trust_jwt_grant_issuer_body.rb → admin_trust_o_auth2_jwt_grant_issuer_body.rb} +5 -5
- data/lib/ory-client/models/admin_update_identity_body.rb +1 -1
- data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
- data/lib/ory-client/models/cloud_account.rb +1 -1
- data/lib/ory-client/models/cname_settings.rb +1 -1
- data/lib/ory-client/models/courier_message_status.rb +39 -0
- data/lib/ory-client/models/courier_message_type.rb +37 -0
- data/lib/ory-client/models/create_custom_hostname_body.rb +1 -1
- data/lib/ory-client/models/create_project_api_key_request.rb +1 -1
- data/lib/ory-client/models/create_project_body.rb +1 -1
- data/lib/ory-client/models/create_subscription_payload.rb +1 -1
- data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
- data/lib/ory-client/models/expand_tree.rb +1 -1
- data/lib/ory-client/models/generic_error.rb +1 -1
- data/lib/ory-client/models/generic_error_content.rb +1 -1
- data/lib/ory-client/models/get_check_response.rb +1 -1
- data/lib/ory-client/models/get_managed_identity_schema_location.rb +1 -1
- data/lib/ory-client/models/{flush_login_consent_request.rb → get_namespaces_response.rb} +13 -12
- data/lib/ory-client/models/get_relation_tuples_response.rb +1 -1
- data/lib/ory-client/models/get_version200_response.rb +1 -1
- data/lib/ory-client/models/handled_o_auth2_consent_request.rb +225 -0
- data/lib/ory-client/models/{request_was_handled_response.rb → handled_o_auth2_login_request.rb} +4 -4
- data/lib/ory-client/models/handled_o_auth2_logout_request.rb +225 -0
- data/lib/ory-client/models/{flush_inactive_o_auth2_tokens_request.rb → headers.rb} +14 -12
- data/lib/ory-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-client/models/health_status.rb +1 -1
- data/lib/ory-client/models/id_token_claims.rb +343 -0
- data/lib/ory-client/models/identity.rb +3 -2
- data/lib/ory-client/models/identity_credentials.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc_provider.rb +1 -1
- data/lib/ory-client/models/identity_credentials_password.rb +1 -1
- data/lib/ory-client/models/identity_credentials_type.rb +1 -1
- data/lib/ory-client/models/identity_schema_container.rb +1 -1
- data/lib/ory-client/models/identity_schema_preset.rb +1 -1
- data/lib/ory-client/models/identity_state.rb +1 -1
- data/lib/ory-client/models/{o_auth2_token_introspection.rb → introspected_o_auth2_token.rb} +5 -5
- data/lib/ory-client/models/invite_payload.rb +1 -1
- data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
- data/lib/ory-client/models/is_owner_for_project_by_slug_payload.rb +1 -1
- data/lib/ory-client/models/is_ready200_response.rb +1 -1
- data/lib/ory-client/models/is_ready503_response.rb +1 -1
- data/lib/ory-client/models/json_error.rb +5 -35
- data/lib/ory-client/models/json_patch.rb +1 -1
- data/lib/ory-client/models/json_web_key.rb +4 -5
- data/lib/ory-client/models/json_web_key_set.rb +6 -6
- data/lib/ory-client/models/keto_namespace.rb +1 -1
- data/lib/ory-client/models/managed_identity_schema.rb +1 -1
- data/lib/ory-client/models/managed_identity_schema_validation_result.rb +1 -1
- data/lib/ory-client/models/message.rb +302 -0
- data/lib/ory-client/models/namespace.rb +220 -0
- data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
- data/lib/ory-client/models/normalized_project.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision.rb +103 -3
- data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +1 -1
- data/lib/ory-client/models/null_plan.rb +1 -1
- data/lib/ory-client/models/o_auth2_access_request.rb +256 -0
- data/lib/ory-client/models/{patch_document.rb → o_auth2_api_error.rb} +34 -44
- data/lib/ory-client/models/o_auth2_client.rb +320 -13
- data/lib/ory-client/models/{consent_request.rb → o_auth2_consent_request.rb} +5 -5
- data/lib/ory-client/models/{open_id_connect_context.rb → o_auth2_consent_request_open_id_connect_context.rb} +4 -4
- data/lib/ory-client/models/o_auth2_consent_session.rb +313 -0
- data/lib/ory-client/models/{oauth2_token_response.rb → o_auth2_consent_session_expires_at.rb} +25 -35
- data/lib/ory-client/models/{login_request.rb → o_auth2_login_request.rb} +5 -5
- data/lib/ory-client/models/{logout_request.rb → o_auth2_logout_request.rb} +4 -4
- data/lib/ory-client/models/{oauth_token_response.rb → o_auth2_token_response.rb} +5 -5
- data/lib/ory-client/models/{well_known.rb → oidc_configuration.rb} +40 -6
- data/lib/ory-client/models/{userinfo_response.rb → oidc_user_info.rb} +4 -4
- data/lib/ory-client/models/pagination.rb +56 -2
- data/lib/ory-client/models/pagination_headers.rb +230 -0
- data/lib/ory-client/models/parse_error.rb +237 -0
- data/lib/ory-client/models/patch_delta.rb +1 -1
- data/lib/ory-client/models/post_check_opl_syntax_response.rb +222 -0
- data/lib/ory-client/models/{previous_consent_session.rb → previous_o_auth2_consent_session.rb} +6 -6
- data/lib/ory-client/models/project.rb +1 -1
- data/lib/ory-client/models/project_api_key.rb +1 -1
- data/lib/ory-client/models/project_host.rb +1 -1
- data/lib/ory-client/models/project_invite.rb +1 -1
- data/lib/ory-client/models/project_metadata.rb +1 -1
- data/lib/ory-client/models/project_service_identity.rb +1 -1
- data/lib/ory-client/models/project_service_o_auth2.rb +1 -1
- data/lib/ory-client/models/project_service_permission.rb +1 -1
- data/lib/ory-client/models/project_services.rb +1 -1
- data/lib/ory-client/models/provision_mock_subscription_payload.rb +1 -1
- data/lib/ory-client/models/quota_custom_domains.rb +1 -1
- data/lib/ory-client/models/quota_project_member_seats.rb +1 -1
- data/lib/ory-client/models/{recovery_address.rb → recovery_identity_address.rb} +4 -4
- data/lib/ory-client/models/refresh_token_hook_request.rb +20 -2
- data/lib/ory-client/models/refresh_token_hook_response.rb +2 -2
- data/lib/ory-client/models/{reject_request.rb → reject_o_auth2_request.rb} +4 -4
- data/lib/ory-client/models/relation_query.rb +1 -1
- data/lib/ory-client/models/relation_tuple.rb +1 -1
- data/lib/ory-client/models/revoked_sessions.rb +1 -1
- data/lib/ory-client/models/schema_patch.rb +1 -1
- data/lib/ory-client/models/self_service_browser_location_change_required_error.rb +1 -1
- data/lib/ory-client/models/self_service_error.rb +2 -1
- data/lib/ory-client/models/self_service_flow_expired_error.rb +2 -1
- data/lib/ory-client/models/self_service_login_flow.rb +2 -1
- data/lib/ory-client/models/self_service_logout_url.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_code.rb +250 -0
- data/lib/ory-client/models/self_service_recovery_flow.rb +3 -2
- data/lib/ory-client/models/self_service_recovery_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_link.rb +1 -1
- data/lib/ory-client/models/self_service_registration_flow.rb +2 -1
- data/lib/ory-client/models/self_service_settings_flow.rb +2 -1
- data/lib/ory-client/models/self_service_settings_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow.rb +2 -1
- data/lib/ory-client/models/self_service_verification_flow_state.rb +1 -1
- data/lib/ory-client/models/session.rb +15 -2
- data/lib/ory-client/models/session_authentication_method.rb +3 -3
- data/lib/ory-client/models/session_device.rb +39 -3
- data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-client/models/source_position.rb +228 -0
- data/lib/ory-client/models/stripe_customer_response.rb +1 -1
- data/lib/ory-client/models/subject_set.rb +1 -1
- data/lib/ory-client/models/submit_self_service_flow_with_web_authn_registration_method.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +3 -1
- data/lib/ory-client/models/submit_self_service_recovery_flow_with_code_method_body.rb +255 -0
- data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +1 -1
- data/lib/ory-client/models/subscription.rb +1 -1
- data/lib/ory-client/models/{completed_request.rb → successful_o_auth2_request_response.rb} +4 -4
- data/lib/ory-client/models/successful_project_update.rb +1 -1
- data/lib/ory-client/models/successful_self_service_login_without_browser.rb +1 -1
- data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +1 -1
- data/lib/ory-client/models/token_pagination.rb +1 -1
- data/lib/ory-client/models/token_pagination_headers.rb +1 -1
- data/lib/ory-client/models/{trusted_jwt_grant_issuer.rb → trusted_o_auth2_jwt_grant_issuer.rb} +5 -5
- data/lib/ory-client/models/{trusted_json_web_key.rb → trusted_o_auth2_jwt_grant_json_web_key.rb} +4 -4
- data/lib/ory-client/models/ui_container.rb +1 -1
- data/lib/ory-client/models/ui_node.rb +5 -5
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_input_attributes.rb +3 -3
- data/lib/ory-client/models/ui_node_meta.rb +1 -1
- data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
- data/lib/ory-client/models/ui_text.rb +1 -1
- data/lib/ory-client/models/update_custom_hostname_body.rb +1 -1
- data/lib/ory-client/models/update_o_auth2_client_lifespans.rb +535 -0
- data/lib/ory-client/models/update_project.rb +1 -1
- data/lib/ory-client/models/update_subscription_payload.rb +1 -1
- data/lib/ory-client/models/verifiable_identity_address.rb +2 -1
- data/lib/ory-client/models/version.rb +1 -1
- data/lib/ory-client/models/warning.rb +1 -1
- data/lib/ory-client/version.rb +2 -2
- data/lib/ory-client.rb +46 -28
- data/ory-client.gemspec +1 -1
- data/spec/api/admin_api_spec.rb +5 -400
- data/spec/api/metadata_api_spec.rb +1 -1
- data/spec/api/namespaces_api_spec.rb +46 -0
- data/spec/api/read_api_spec.rb +7 -7
- data/spec/api/syntax_api_spec.rb +47 -0
- data/spec/api/v0alpha2_api_spec.rb +573 -15
- data/spec/api/write_api_spec.rb +4 -4
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{consent_request_session_spec.rb → accept_o_auth2_consent_request_session_spec.rb} +7 -7
- data/spec/models/{accept_consent_request_spec.rb → accept_o_auth2_consent_request_spec.rb} +7 -7
- data/spec/models/{accept_login_request_spec.rb → accept_o_auth2_login_request_spec.rb} +7 -7
- data/spec/models/active_project_spec.rb +1 -1
- data/spec/models/admin_create_identity_body_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_config_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_provider_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_password_config_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_password_spec.rb +1 -1
- data/spec/models/{json_web_key_set_generator_request_spec.rb → admin_create_json_web_key_set_body_spec.rb} +7 -7
- data/spec/models/admin_create_self_service_recovery_code_body_spec.rb +40 -0
- data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
- data/spec/models/admin_identity_import_credentials_spec.rb +1 -1
- data/spec/models/{trust_jwt_grant_issuer_body_spec.rb → admin_trust_o_auth2_jwt_grant_issuer_body_spec.rb} +7 -7
- data/spec/models/admin_update_identity_body_spec.rb +1 -1
- data/spec/models/authenticator_assurance_level_spec.rb +1 -1
- data/spec/models/cloud_account_spec.rb +1 -1
- data/spec/models/cname_settings_spec.rb +1 -1
- data/spec/models/courier_message_status_spec.rb +28 -0
- data/spec/models/courier_message_type_spec.rb +28 -0
- data/spec/models/create_custom_hostname_body_spec.rb +1 -1
- data/spec/models/create_project_api_key_request_spec.rb +1 -1
- data/spec/models/create_project_body_spec.rb +1 -1
- data/spec/models/create_subscription_payload_spec.rb +1 -1
- data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
- data/spec/models/expand_tree_spec.rb +1 -1
- data/spec/models/generic_error_content_spec.rb +1 -1
- data/spec/models/generic_error_spec.rb +1 -1
- data/spec/models/get_check_response_spec.rb +1 -1
- data/spec/models/get_managed_identity_schema_location_spec.rb +1 -1
- data/spec/models/{flush_login_consent_request_spec.rb → get_namespaces_response_spec.rb} +8 -8
- data/spec/models/get_relation_tuples_response_spec.rb +1 -1
- data/spec/models/get_version200_response_spec.rb +1 -1
- data/spec/models/{flush_inactive_o_auth2_tokens_request_spec.rb → handled_o_auth2_consent_request_spec.rb} +8 -8
- data/spec/models/{request_was_handled_response_spec.rb → handled_o_auth2_login_request_spec.rb} +7 -7
- data/spec/models/{completed_request_spec.rb → handled_o_auth2_logout_request_spec.rb} +7 -7
- data/spec/models/headers_spec.rb +34 -0
- data/spec/models/health_not_ready_status_spec.rb +1 -1
- data/spec/models/health_status_spec.rb +1 -1
- data/spec/models/id_token_claims_spec.rb +112 -0
- data/spec/models/identity_credentials_oidc_provider_spec.rb +1 -1
- data/spec/models/identity_credentials_oidc_spec.rb +1 -1
- data/spec/models/identity_credentials_password_spec.rb +1 -1
- data/spec/models/identity_credentials_spec.rb +1 -1
- data/spec/models/identity_credentials_type_spec.rb +1 -1
- data/spec/models/identity_schema_container_spec.rb +1 -1
- data/spec/models/identity_schema_preset_spec.rb +1 -1
- data/spec/models/identity_spec.rb +1 -1
- data/spec/models/identity_state_spec.rb +1 -1
- data/spec/models/{o_auth2_token_introspection_spec.rb → introspected_o_auth2_token_spec.rb} +7 -7
- data/spec/models/invite_payload_spec.rb +1 -1
- data/spec/models/is_owner_for_project_by_slug_payload_spec.rb +1 -1
- data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
- data/spec/models/is_ready200_response_spec.rb +1 -1
- data/spec/models/is_ready503_response_spec.rb +1 -1
- data/spec/models/json_error_spec.rb +1 -19
- data/spec/models/json_patch_spec.rb +1 -1
- data/spec/models/json_web_key_set_spec.rb +7 -7
- data/spec/models/json_web_key_spec.rb +7 -7
- data/spec/models/keto_namespace_spec.rb +1 -1
- data/spec/models/managed_identity_schema_spec.rb +1 -1
- data/spec/models/managed_identity_schema_validation_result_spec.rb +1 -1
- data/spec/models/message_spec.rb +88 -0
- data/spec/models/namespace_spec.rb +34 -0
- data/spec/models/needs_privileged_session_error_spec.rb +1 -1
- data/spec/models/normalized_project_revision_hook_spec.rb +1 -1
- data/spec/models/normalized_project_revision_identity_schema_spec.rb +1 -1
- data/spec/models/normalized_project_revision_spec.rb +61 -1
- data/spec/models/normalized_project_revision_third_party_provider_spec.rb +1 -1
- data/spec/models/normalized_project_spec.rb +1 -1
- data/spec/models/null_plan_spec.rb +1 -1
- data/spec/models/o_auth2_access_request_spec.rb +52 -0
- data/spec/models/{patch_document_spec.rb → o_auth2_api_error_spec.rb} +11 -11
- data/spec/models/o_auth2_client_spec.rb +73 -1
- data/spec/models/{open_id_connect_context_spec.rb → o_auth2_consent_request_open_id_connect_context_spec.rb} +7 -7
- data/spec/models/{consent_request_spec.rb → o_auth2_consent_request_spec.rb} +7 -7
- data/spec/models/{oauth_token_response_spec.rb → o_auth2_consent_session_expires_at_spec.rb} +10 -16
- data/spec/models/o_auth2_consent_session_spec.rb +94 -0
- data/spec/models/{login_request_spec.rb → o_auth2_login_request_spec.rb} +7 -7
- data/spec/models/{logout_request_spec.rb → o_auth2_logout_request_spec.rb} +7 -7
- data/spec/models/{oauth2_token_response_spec.rb → o_auth2_token_response_spec.rb} +7 -7
- data/spec/models/{well_known_spec.rb → oidc_configuration_spec.rb} +19 -7
- data/spec/models/{userinfo_response_spec.rb → oidc_user_info_spec.rb} +7 -7
- data/spec/models/pagination_headers_spec.rb +40 -0
- data/spec/models/pagination_spec.rb +13 -1
- data/spec/models/parse_error_spec.rb +46 -0
- data/spec/models/patch_delta_spec.rb +1 -1
- data/spec/models/post_check_opl_syntax_response_spec.rb +34 -0
- data/spec/models/{previous_consent_session_spec.rb → previous_o_auth2_consent_session_spec.rb} +7 -7
- data/spec/models/project_api_key_spec.rb +1 -1
- data/spec/models/project_host_spec.rb +1 -1
- data/spec/models/project_invite_spec.rb +1 -1
- data/spec/models/project_metadata_spec.rb +1 -1
- data/spec/models/project_service_identity_spec.rb +1 -1
- data/spec/models/project_service_o_auth2_spec.rb +1 -1
- data/spec/models/project_service_permission_spec.rb +1 -1
- data/spec/models/project_services_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/provision_mock_subscription_payload_spec.rb +1 -1
- data/spec/models/quota_custom_domains_spec.rb +1 -1
- data/spec/models/quota_project_member_seats_spec.rb +1 -1
- data/spec/models/{recovery_address_spec.rb → recovery_identity_address_spec.rb} +7 -7
- data/spec/models/refresh_token_hook_request_spec.rb +13 -1
- data/spec/models/refresh_token_hook_response_spec.rb +1 -1
- data/spec/models/{reject_request_spec.rb → reject_o_auth2_request_spec.rb} +7 -7
- data/spec/models/relation_query_spec.rb +1 -1
- data/spec/models/relation_tuple_spec.rb +1 -1
- data/spec/models/revoked_sessions_spec.rb +1 -1
- data/spec/models/schema_patch_spec.rb +1 -1
- data/spec/models/self_service_browser_location_change_required_error_spec.rb +1 -1
- data/spec/models/self_service_error_spec.rb +1 -1
- data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
- data/spec/models/self_service_login_flow_spec.rb +1 -1
- data/spec/models/self_service_logout_url_spec.rb +1 -1
- data/spec/models/self_service_recovery_code_spec.rb +46 -0
- data/spec/models/self_service_recovery_flow_spec.rb +1 -1
- data/spec/models/self_service_recovery_flow_state_spec.rb +1 -1
- data/spec/models/self_service_recovery_link_spec.rb +1 -1
- data/spec/models/self_service_registration_flow_spec.rb +1 -1
- data/spec/models/self_service_settings_flow_spec.rb +1 -1
- data/spec/models/self_service_settings_flow_state_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_state_spec.rb +1 -1
- data/spec/models/session_authentication_method_spec.rb +2 -2
- data/spec/models/session_device_spec.rb +19 -1
- data/spec/models/session_spec.rb +7 -1
- data/spec/models/settings_profile_form_config_spec.rb +1 -1
- data/spec/models/source_position_spec.rb +40 -0
- data/spec/models/stripe_customer_response_spec.rb +1 -1
- data/spec/models/subject_set_spec.rb +1 -1
- data/spec/models/submit_self_service_flow_with_web_authn_registration_method_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_with_code_method_body_spec.rb +52 -0
- data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/subscription_spec.rb +1 -1
- data/spec/models/successful_o_auth2_request_response_spec.rb +34 -0
- data/spec/models/successful_project_update_spec.rb +1 -1
- data/spec/models/successful_self_service_login_without_browser_spec.rb +1 -1
- data/spec/models/successful_self_service_registration_without_browser_spec.rb +1 -1
- data/spec/models/token_pagination_headers_spec.rb +1 -1
- data/spec/models/token_pagination_spec.rb +1 -1
- data/spec/models/{trusted_jwt_grant_issuer_spec.rb → trusted_o_auth2_jwt_grant_issuer_spec.rb} +7 -7
- data/spec/models/{trusted_json_web_key_spec.rb → trusted_o_auth2_jwt_grant_json_web_key_spec.rb} +7 -7
- data/spec/models/ui_container_spec.rb +1 -1
- data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
- data/spec/models/ui_node_attributes_spec.rb +1 -1
- data/spec/models/ui_node_image_attributes_spec.rb +1 -1
- data/spec/models/ui_node_input_attributes_spec.rb +1 -1
- data/spec/models/ui_node_meta_spec.rb +1 -1
- data/spec/models/ui_node_script_attributes_spec.rb +1 -1
- data/spec/models/ui_node_spec.rb +2 -2
- data/spec/models/ui_node_text_attributes_spec.rb +1 -1
- data/spec/models/ui_text_spec.rb +1 -1
- data/spec/models/update_custom_hostname_body_spec.rb +1 -1
- data/spec/models/update_o_auth2_client_lifespans_spec.rb +100 -0
- data/spec/models/update_project_spec.rb +1 -1
- data/spec/models/update_subscription_payload_spec.rb +1 -1
- data/spec/models/verifiable_identity_address_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/models/warning_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.6.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
- 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
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.5 → psych-4.0.6}/gem_make.out +6 -6
- 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
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.5 → psych-4.0.6}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Gemfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Mavenfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/README.md +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/bin/console +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/bin/setup +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/api.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/depend +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/dumper.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/extconf.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/loader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5/lib → psych-4.0.6/ext/psych}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_emitter.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_parser.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_to_ruby.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_to_ruby.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_yaml_tree.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_yaml_tree.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/reader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/scanner.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/writer.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/api.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/config.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/dumper.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/loader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/reader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/scanner.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/writer.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/yaml.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/yaml_private.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/class_loader.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/coder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/core_ext.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/exception.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handler.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handlers/document_stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handlers/recorder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/ruby_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/yaml_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/alias.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/document.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/mapping.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/node.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/scalar.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/sequence.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/omap.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/parser.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/scalar_scanner.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/set.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/streaming.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/syntax_error.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/versions.rb +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/depth_first.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/emitter.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/json_tree.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/to_ruby.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/visitor.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/yaml_tree.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/y.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5/ext/psych → psych-4.0.6/lib}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/psych.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.2/ext/stringio/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/{psych-4.0.5.gemspec → psych-4.0.6.gemspec} +3 -3
- metadata +271 -199
- data/docs/FlushInactiveOAuth2TokensRequest.md +0 -18
- data/docs/FlushLoginConsentRequest.md +0 -18
- data/docs/JSONWebKeySet.md +0 -18
- data/docs/Oauth2TokenResponse.md +0 -28
- data/docs/PatchDocument.md +0 -24
- data/docs/PublicApi.md +0 -738
- data/lib/ory-client/api/public_api.rb +0 -723
- data/spec/api/public_api_spec.rb +0 -167
- data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.5.gem +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
5
|
|
6
|
-
The version of the OpenAPI document: v0.2.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.60
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.1
|
@@ -14,8 +14,8 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OryClient
|
17
|
-
# It includes links to several endpoints (
|
18
|
-
class
|
17
|
+
# It includes links to several endpoints (for example `/oauth2/token`) and exposes information on supported signature algorithms among others.
|
18
|
+
class OidcConfiguration
|
19
19
|
# URL of the OP's OAuth 2.0 Authorization Endpoint.
|
20
20
|
attr_accessor :authorization_endpoint
|
21
21
|
|
@@ -46,6 +46,9 @@ module OryClient
|
|
46
46
|
# JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports.
|
47
47
|
attr_accessor :grant_types_supported
|
48
48
|
|
49
|
+
# Algorithm used to sign OpenID Connect ID Tokens.
|
50
|
+
attr_accessor :id_token_signed_response_alg
|
51
|
+
|
49
52
|
# JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT.
|
50
53
|
attr_accessor :id_token_signing_alg_values_supported
|
51
54
|
|
@@ -94,6 +97,9 @@ module OryClient
|
|
94
97
|
# URL of the OP's UserInfo Endpoint.
|
95
98
|
attr_accessor :userinfo_endpoint
|
96
99
|
|
100
|
+
# Algorithm used to sign OpenID Connect Userinfo Responses.
|
101
|
+
attr_accessor :userinfo_signed_response_alg
|
102
|
+
|
97
103
|
# JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
|
98
104
|
attr_accessor :userinfo_signing_alg_values_supported
|
99
105
|
|
@@ -110,6 +116,7 @@ module OryClient
|
|
110
116
|
:'frontchannel_logout_session_supported' => :'frontchannel_logout_session_supported',
|
111
117
|
:'frontchannel_logout_supported' => :'frontchannel_logout_supported',
|
112
118
|
:'grant_types_supported' => :'grant_types_supported',
|
119
|
+
:'id_token_signed_response_alg' => :'id_token_signed_response_alg',
|
113
120
|
:'id_token_signing_alg_values_supported' => :'id_token_signing_alg_values_supported',
|
114
121
|
:'issuer' => :'issuer',
|
115
122
|
:'jwks_uri' => :'jwks_uri',
|
@@ -126,6 +133,7 @@ module OryClient
|
|
126
133
|
:'token_endpoint' => :'token_endpoint',
|
127
134
|
:'token_endpoint_auth_methods_supported' => :'token_endpoint_auth_methods_supported',
|
128
135
|
:'userinfo_endpoint' => :'userinfo_endpoint',
|
136
|
+
:'userinfo_signed_response_alg' => :'userinfo_signed_response_alg',
|
129
137
|
:'userinfo_signing_alg_values_supported' => :'userinfo_signing_alg_values_supported'
|
130
138
|
}
|
131
139
|
end
|
@@ -148,6 +156,7 @@ module OryClient
|
|
148
156
|
:'frontchannel_logout_session_supported' => :'Boolean',
|
149
157
|
:'frontchannel_logout_supported' => :'Boolean',
|
150
158
|
:'grant_types_supported' => :'Array<String>',
|
159
|
+
:'id_token_signed_response_alg' => :'Array<String>',
|
151
160
|
:'id_token_signing_alg_values_supported' => :'Array<String>',
|
152
161
|
:'issuer' => :'String',
|
153
162
|
:'jwks_uri' => :'String',
|
@@ -164,6 +173,7 @@ module OryClient
|
|
164
173
|
:'token_endpoint' => :'String',
|
165
174
|
:'token_endpoint_auth_methods_supported' => :'Array<String>',
|
166
175
|
:'userinfo_endpoint' => :'String',
|
176
|
+
:'userinfo_signed_response_alg' => :'Array<String>',
|
167
177
|
:'userinfo_signing_alg_values_supported' => :'Array<String>'
|
168
178
|
}
|
169
179
|
end
|
@@ -178,13 +188,13 @@ module OryClient
|
|
178
188
|
# @param [Hash] attributes Model attributes in the form of hash
|
179
189
|
def initialize(attributes = {})
|
180
190
|
if (!attributes.is_a?(Hash))
|
181
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::
|
191
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::OidcConfiguration` initialize method"
|
182
192
|
end
|
183
193
|
|
184
194
|
# check to see if the attribute exists and convert string to symbol for hash key
|
185
195
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
186
196
|
if (!self.class.attribute_map.key?(k.to_sym))
|
187
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::
|
197
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::OidcConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
188
198
|
end
|
189
199
|
h[k.to_sym] = v
|
190
200
|
}
|
@@ -235,6 +245,12 @@ module OryClient
|
|
235
245
|
end
|
236
246
|
end
|
237
247
|
|
248
|
+
if attributes.key?(:'id_token_signed_response_alg')
|
249
|
+
if (value = attributes[:'id_token_signed_response_alg']).is_a?(Array)
|
250
|
+
self.id_token_signed_response_alg = value
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
238
254
|
if attributes.key?(:'id_token_signing_alg_values_supported')
|
239
255
|
if (value = attributes[:'id_token_signing_alg_values_supported']).is_a?(Array)
|
240
256
|
self.id_token_signing_alg_values_supported = value
|
@@ -313,6 +329,12 @@ module OryClient
|
|
313
329
|
self.userinfo_endpoint = attributes[:'userinfo_endpoint']
|
314
330
|
end
|
315
331
|
|
332
|
+
if attributes.key?(:'userinfo_signed_response_alg')
|
333
|
+
if (value = attributes[:'userinfo_signed_response_alg']).is_a?(Array)
|
334
|
+
self.userinfo_signed_response_alg = value
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
316
338
|
if attributes.key?(:'userinfo_signing_alg_values_supported')
|
317
339
|
if (value = attributes[:'userinfo_signing_alg_values_supported']).is_a?(Array)
|
318
340
|
self.userinfo_signing_alg_values_supported = value
|
@@ -328,6 +350,10 @@ module OryClient
|
|
328
350
|
invalid_properties.push('invalid value for "authorization_endpoint", authorization_endpoint cannot be nil.')
|
329
351
|
end
|
330
352
|
|
353
|
+
if @id_token_signed_response_alg.nil?
|
354
|
+
invalid_properties.push('invalid value for "id_token_signed_response_alg", id_token_signed_response_alg cannot be nil.')
|
355
|
+
end
|
356
|
+
|
331
357
|
if @id_token_signing_alg_values_supported.nil?
|
332
358
|
invalid_properties.push('invalid value for "id_token_signing_alg_values_supported", id_token_signing_alg_values_supported cannot be nil.')
|
333
359
|
end
|
@@ -352,6 +378,10 @@ module OryClient
|
|
352
378
|
invalid_properties.push('invalid value for "token_endpoint", token_endpoint cannot be nil.')
|
353
379
|
end
|
354
380
|
|
381
|
+
if @userinfo_signed_response_alg.nil?
|
382
|
+
invalid_properties.push('invalid value for "userinfo_signed_response_alg", userinfo_signed_response_alg cannot be nil.')
|
383
|
+
end
|
384
|
+
|
355
385
|
invalid_properties
|
356
386
|
end
|
357
387
|
|
@@ -359,12 +389,14 @@ module OryClient
|
|
359
389
|
# @return true if the model is valid
|
360
390
|
def valid?
|
361
391
|
return false if @authorization_endpoint.nil?
|
392
|
+
return false if @id_token_signed_response_alg.nil?
|
362
393
|
return false if @id_token_signing_alg_values_supported.nil?
|
363
394
|
return false if @issuer.nil?
|
364
395
|
return false if @jwks_uri.nil?
|
365
396
|
return false if @response_types_supported.nil?
|
366
397
|
return false if @subject_types_supported.nil?
|
367
398
|
return false if @token_endpoint.nil?
|
399
|
+
return false if @userinfo_signed_response_alg.nil?
|
368
400
|
true
|
369
401
|
end
|
370
402
|
|
@@ -383,6 +415,7 @@ module OryClient
|
|
383
415
|
frontchannel_logout_session_supported == o.frontchannel_logout_session_supported &&
|
384
416
|
frontchannel_logout_supported == o.frontchannel_logout_supported &&
|
385
417
|
grant_types_supported == o.grant_types_supported &&
|
418
|
+
id_token_signed_response_alg == o.id_token_signed_response_alg &&
|
386
419
|
id_token_signing_alg_values_supported == o.id_token_signing_alg_values_supported &&
|
387
420
|
issuer == o.issuer &&
|
388
421
|
jwks_uri == o.jwks_uri &&
|
@@ -399,6 +432,7 @@ module OryClient
|
|
399
432
|
token_endpoint == o.token_endpoint &&
|
400
433
|
token_endpoint_auth_methods_supported == o.token_endpoint_auth_methods_supported &&
|
401
434
|
userinfo_endpoint == o.userinfo_endpoint &&
|
435
|
+
userinfo_signed_response_alg == o.userinfo_signed_response_alg &&
|
402
436
|
userinfo_signing_alg_values_supported == o.userinfo_signing_alg_values_supported
|
403
437
|
end
|
404
438
|
|
@@ -411,7 +445,7 @@ module OryClient
|
|
411
445
|
# Calculates hash code according to all attributes.
|
412
446
|
# @return [Integer] Hash code
|
413
447
|
def hash
|
414
|
-
[authorization_endpoint, backchannel_logout_session_supported, backchannel_logout_supported, claims_parameter_supported, claims_supported, code_challenge_methods_supported, end_session_endpoint, frontchannel_logout_session_supported, frontchannel_logout_supported, grant_types_supported, id_token_signing_alg_values_supported, issuer, jwks_uri, registration_endpoint, request_object_signing_alg_values_supported, request_parameter_supported, request_uri_parameter_supported, require_request_uri_registration, response_modes_supported, response_types_supported, revocation_endpoint, scopes_supported, subject_types_supported, token_endpoint, token_endpoint_auth_methods_supported, userinfo_endpoint, userinfo_signing_alg_values_supported].hash
|
448
|
+
[authorization_endpoint, backchannel_logout_session_supported, backchannel_logout_supported, claims_parameter_supported, claims_supported, code_challenge_methods_supported, end_session_endpoint, frontchannel_logout_session_supported, frontchannel_logout_supported, grant_types_supported, id_token_signed_response_alg, id_token_signing_alg_values_supported, issuer, jwks_uri, registration_endpoint, request_object_signing_alg_values_supported, request_parameter_supported, request_uri_parameter_supported, require_request_uri_registration, response_modes_supported, response_types_supported, revocation_endpoint, scopes_supported, subject_types_supported, token_endpoint, token_endpoint_auth_methods_supported, userinfo_endpoint, userinfo_signed_response_alg, userinfo_signing_alg_values_supported].hash
|
415
449
|
end
|
416
450
|
|
417
451
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
5
|
|
6
|
-
The version of the OpenAPI document: v0.2.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.60
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.1
|
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module OryClient
|
17
17
|
# The userinfo response
|
18
|
-
class
|
18
|
+
class OidcUserInfo
|
19
19
|
# End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates.
|
20
20
|
attr_accessor :birthdate
|
21
21
|
|
@@ -138,13 +138,13 @@ module OryClient
|
|
138
138
|
# @param [Hash] attributes Model attributes in the form of hash
|
139
139
|
def initialize(attributes = {})
|
140
140
|
if (!attributes.is_a?(Hash))
|
141
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::
|
141
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::OidcUserInfo` initialize method"
|
142
142
|
end
|
143
143
|
|
144
144
|
# check to see if the attribute exists and convert string to symbol for hash key
|
145
145
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
146
146
|
if (!self.class.attribute_map.key?(k.to_sym))
|
147
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::
|
147
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::OidcUserInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
148
148
|
end
|
149
149
|
h[k.to_sym] = v
|
150
150
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
5
|
|
6
|
-
The version of the OpenAPI document: v0.2.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.60
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.1
|
@@ -18,6 +18,12 @@ module OryClient
|
|
18
18
|
# 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.
|
19
19
|
attr_accessor :page
|
20
20
|
|
21
|
+
# Items per page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
22
|
+
attr_accessor :page_size
|
23
|
+
|
24
|
+
# Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
25
|
+
attr_accessor :page_token
|
26
|
+
|
21
27
|
# Items per Page This is the number of items per page.
|
22
28
|
attr_accessor :per_page
|
23
29
|
|
@@ -25,6 +31,8 @@ module OryClient
|
|
25
31
|
def self.attribute_map
|
26
32
|
{
|
27
33
|
:'page' => :'page',
|
34
|
+
:'page_size' => :'page_size',
|
35
|
+
:'page_token' => :'page_token',
|
28
36
|
:'per_page' => :'per_page'
|
29
37
|
}
|
30
38
|
end
|
@@ -38,6 +46,8 @@ module OryClient
|
|
38
46
|
def self.openapi_types
|
39
47
|
{
|
40
48
|
:'page' => :'Integer',
|
49
|
+
:'page_size' => :'Integer',
|
50
|
+
:'page_token' => :'String',
|
41
51
|
:'per_page' => :'Integer'
|
42
52
|
}
|
43
53
|
end
|
@@ -69,6 +79,18 @@ module OryClient
|
|
69
79
|
self.page = 1
|
70
80
|
end
|
71
81
|
|
82
|
+
if attributes.key?(:'page_size')
|
83
|
+
self.page_size = attributes[:'page_size']
|
84
|
+
else
|
85
|
+
self.page_size = 250
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'page_token')
|
89
|
+
self.page_token = attributes[:'page_token']
|
90
|
+
else
|
91
|
+
self.page_token = '1'
|
92
|
+
end
|
93
|
+
|
72
94
|
if attributes.key?(:'per_page')
|
73
95
|
self.per_page = attributes[:'per_page']
|
74
96
|
else
|
@@ -84,6 +106,14 @@ module OryClient
|
|
84
106
|
invalid_properties.push('invalid value for "page", must be greater than or equal to 1.')
|
85
107
|
end
|
86
108
|
|
109
|
+
if !@page_size.nil? && @page_size > 1000
|
110
|
+
invalid_properties.push('invalid value for "page_size", must be smaller than or equal to 1000.')
|
111
|
+
end
|
112
|
+
|
113
|
+
if !@page_size.nil? && @page_size < 1
|
114
|
+
invalid_properties.push('invalid value for "page_size", must be greater than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
87
117
|
if !@per_page.nil? && @per_page > 1000
|
88
118
|
invalid_properties.push('invalid value for "per_page", must be smaller than or equal to 1000.')
|
89
119
|
end
|
@@ -99,6 +129,8 @@ module OryClient
|
|
99
129
|
# @return true if the model is valid
|
100
130
|
def valid?
|
101
131
|
return false if !@page.nil? && @page < 1
|
132
|
+
return false if !@page_size.nil? && @page_size > 1000
|
133
|
+
return false if !@page_size.nil? && @page_size < 1
|
102
134
|
return false if !@per_page.nil? && @per_page > 1000
|
103
135
|
return false if !@per_page.nil? && @per_page < 1
|
104
136
|
true
|
@@ -114,6 +146,26 @@ module OryClient
|
|
114
146
|
@page = page
|
115
147
|
end
|
116
148
|
|
149
|
+
# Custom attribute writer method with validation
|
150
|
+
# @param [Object] page_size Value to be assigned
|
151
|
+
def page_size=(page_size)
|
152
|
+
if !page_size.nil? && page_size > 1000
|
153
|
+
fail ArgumentError, 'invalid value for "page_size", must be smaller than or equal to 1000.'
|
154
|
+
end
|
155
|
+
|
156
|
+
if !page_size.nil? && page_size < 1
|
157
|
+
fail ArgumentError, 'invalid value for "page_size", must be greater than or equal to 1.'
|
158
|
+
end
|
159
|
+
|
160
|
+
@page_size = page_size
|
161
|
+
end
|
162
|
+
|
163
|
+
# Custom attribute writer method with validation
|
164
|
+
# @param [Object] page_token Value to be assigned
|
165
|
+
def page_token=(page_token)
|
166
|
+
@page_token = page_token
|
167
|
+
end
|
168
|
+
|
117
169
|
# Custom attribute writer method with validation
|
118
170
|
# @param [Object] per_page Value to be assigned
|
119
171
|
def per_page=(per_page)
|
@@ -134,6 +186,8 @@ module OryClient
|
|
134
186
|
return true if self.equal?(o)
|
135
187
|
self.class == o.class &&
|
136
188
|
page == o.page &&
|
189
|
+
page_size == o.page_size &&
|
190
|
+
page_token == o.page_token &&
|
137
191
|
per_page == o.per_page
|
138
192
|
end
|
139
193
|
|
@@ -146,7 +200,7 @@ module OryClient
|
|
146
200
|
# Calculates hash code according to all attributes.
|
147
201
|
# @return [Integer] Hash code
|
148
202
|
def hash
|
149
|
-
[page, per_page].hash
|
203
|
+
[page, page_size, page_token, per_page].hash
|
150
204
|
end
|
151
205
|
|
152
206
|
# Builds the object from hash
|
@@ -0,0 +1,230 @@
|
|
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.60
|
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 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module OryClient
|
17
|
+
class PaginationHeaders
|
18
|
+
# The link header contains pagination links. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). in: header
|
19
|
+
attr_accessor :link
|
20
|
+
|
21
|
+
# The total number of clients. in: header
|
22
|
+
attr_accessor :x_total_count
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'link' => :'link',
|
28
|
+
:'x_total_count' => :'x-total-count'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Returns all the JSON keys this model knows about
|
33
|
+
def self.acceptable_attributes
|
34
|
+
attribute_map.values
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.openapi_types
|
39
|
+
{
|
40
|
+
:'link' => :'String',
|
41
|
+
:'x_total_count' => :'String'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
])
|
49
|
+
end
|
50
|
+
|
51
|
+
# Initializes the object
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::PaginationHeaders` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::PaginationHeaders`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
|
+
end
|
63
|
+
h[k.to_sym] = v
|
64
|
+
}
|
65
|
+
|
66
|
+
if attributes.key?(:'link')
|
67
|
+
self.link = attributes[:'link']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.key?(:'x_total_count')
|
71
|
+
self.x_total_count = attributes[:'x_total_count']
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
76
|
+
# @return Array for valid properties with the reasons
|
77
|
+
def list_invalid_properties
|
78
|
+
invalid_properties = Array.new
|
79
|
+
invalid_properties
|
80
|
+
end
|
81
|
+
|
82
|
+
# Check to see if the all the properties in the model are valid
|
83
|
+
# @return true if the model is valid
|
84
|
+
def valid?
|
85
|
+
true
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks equality by comparing each attribute.
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def ==(o)
|
91
|
+
return true if self.equal?(o)
|
92
|
+
self.class == o.class &&
|
93
|
+
link == o.link &&
|
94
|
+
x_total_count == o.x_total_count
|
95
|
+
end
|
96
|
+
|
97
|
+
# @see the `==` method
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def eql?(o)
|
100
|
+
self == o
|
101
|
+
end
|
102
|
+
|
103
|
+
# Calculates hash code according to all attributes.
|
104
|
+
# @return [Integer] Hash code
|
105
|
+
def hash
|
106
|
+
[link, x_total_count].hash
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def self.build_from_hash(attributes)
|
113
|
+
new.build_from_hash(attributes)
|
114
|
+
end
|
115
|
+
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def build_from_hash(attributes)
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
121
|
+
attributes = attributes.transform_keys(&:to_sym)
|
122
|
+
self.class.openapi_types.each_pair do |key, type|
|
123
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
124
|
+
self.send("#{key}=", nil)
|
125
|
+
elsif type =~ /\AArray<(.*)>/i
|
126
|
+
# check to ensure the input is an array given that the attribute
|
127
|
+
# is documented as an array but the input is not
|
128
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
129
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
130
|
+
end
|
131
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
132
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
self
|
137
|
+
end
|
138
|
+
|
139
|
+
# Deserializes the data based on type
|
140
|
+
# @param string type Data type
|
141
|
+
# @param string value Value to be deserialized
|
142
|
+
# @return [Object] Deserialized data
|
143
|
+
def _deserialize(type, value)
|
144
|
+
case type.to_sym
|
145
|
+
when :Time
|
146
|
+
Time.parse(value)
|
147
|
+
when :Date
|
148
|
+
Date.parse(value)
|
149
|
+
when :String
|
150
|
+
value.to_s
|
151
|
+
when :Integer
|
152
|
+
value.to_i
|
153
|
+
when :Float
|
154
|
+
value.to_f
|
155
|
+
when :Boolean
|
156
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
157
|
+
true
|
158
|
+
else
|
159
|
+
false
|
160
|
+
end
|
161
|
+
when :Object
|
162
|
+
# generic object (usually a Hash), return directly
|
163
|
+
value
|
164
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
165
|
+
inner_type = Regexp.last_match[:inner_type]
|
166
|
+
value.map { |v| _deserialize(inner_type, v) }
|
167
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
168
|
+
k_type = Regexp.last_match[:k_type]
|
169
|
+
v_type = Regexp.last_match[:v_type]
|
170
|
+
{}.tap do |hash|
|
171
|
+
value.each do |k, v|
|
172
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
else # model
|
176
|
+
# models (e.g. Pet) or oneOf
|
177
|
+
klass = OryClient.const_get(type)
|
178
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
# Returns the string representation of the object
|
183
|
+
# @return [String] String presentation of the object
|
184
|
+
def to_s
|
185
|
+
to_hash.to_s
|
186
|
+
end
|
187
|
+
|
188
|
+
# to_body is an alias to to_hash (backward compatibility)
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
190
|
+
def to_body
|
191
|
+
to_hash
|
192
|
+
end
|
193
|
+
|
194
|
+
# Returns the object in the form of hash
|
195
|
+
# @return [Hash] Returns the object in the form of hash
|
196
|
+
def to_hash
|
197
|
+
hash = {}
|
198
|
+
self.class.attribute_map.each_pair do |attr, param|
|
199
|
+
value = self.send(attr)
|
200
|
+
if value.nil?
|
201
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
202
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
203
|
+
end
|
204
|
+
|
205
|
+
hash[param] = _to_hash(value)
|
206
|
+
end
|
207
|
+
hash
|
208
|
+
end
|
209
|
+
|
210
|
+
# Outputs non-array value in the form of hash
|
211
|
+
# For object, use to_hash. Otherwise, just return the value
|
212
|
+
# @param [Object] value Any valid value
|
213
|
+
# @return [Hash] Returns the value in the form of hash
|
214
|
+
def _to_hash(value)
|
215
|
+
if value.is_a?(Array)
|
216
|
+
value.compact.map { |v| _to_hash(v) }
|
217
|
+
elsif value.is_a?(Hash)
|
218
|
+
{}.tap do |hash|
|
219
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
220
|
+
end
|
221
|
+
elsif value.respond_to? :to_hash
|
222
|
+
value.to_hash
|
223
|
+
else
|
224
|
+
value
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
end
|
229
|
+
|
230
|
+
end
|