ory-client 0.0.1.alpha169 → 0.0.1.alpha177
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +27 -5
- data/docs/AdminCreateIdentityBody.md +4 -0
- data/docs/AdminUpdateIdentityBody.md +4 -0
- data/docs/CnameSettings.md +4 -0
- data/docs/CreateCustomHostnameBody.md +4 -0
- data/docs/ExpandTree.md +24 -0
- data/docs/GenericError.md +1 -1
- data/docs/GetCheckResponse.md +18 -0
- data/docs/GetRelationTuplesResponse.md +20 -0
- data/docs/Identity.md +4 -0
- data/docs/InternalRelationTuple.md +26 -0
- data/docs/KetoNamespace.md +20 -0
- data/docs/MetadataApi.md +18 -3
- data/docs/NormalizedProject.md +1 -1
- data/docs/NormalizedProjectRevision.md +4 -0
- data/docs/PatchDelta.md +20 -0
- data/docs/Project.md +1 -1
- data/docs/ProjectMetadata.md +1 -1
- data/docs/ProjectServicePermission.md +18 -0
- data/docs/ProjectServices.md +4 -2
- data/docs/ReadApi.md +333 -0
- data/docs/RelationQuery.md +26 -0
- data/docs/SelfServiceRecoveryFlow.md +1 -1
- data/docs/SelfServiceRegistrationFlow.md +1 -1
- data/docs/SelfServiceSettingsFlow.md +1 -1
- data/docs/SubjectSet.md +22 -0
- data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +1 -1
- data/docs/Subscription.md +1 -1
- data/docs/UiNode.md +2 -2
- data/docs/UiNodeAnchorAttributes.md +1 -1
- data/docs/UiNodeAttributes.md +2 -2
- data/docs/UiNodeImageAttributes.md +1 -1
- data/docs/UiNodeInputAttributes.md +1 -1
- data/docs/UiNodeScriptAttributes.md +1 -1
- data/docs/UiNodeTextAttributes.md +1 -1
- data/docs/UpdateCustomHostnameBody.md +4 -0
- data/docs/V0alpha2Api.md +5 -3
- data/docs/WriteApi.md +233 -0
- data/lib/ory-client/api/metadata_api.rb +4 -4
- data/lib/ory-client/api/read_api.rb +335 -0
- data/lib/ory-client/api/v0alpha2_api.rb +8 -5
- data/lib/ory-client/api/write_api.rb +228 -0
- data/lib/ory-client/api_client.rb +1 -1
- data/lib/ory-client/api_error.rb +1 -1
- data/lib/ory-client/configuration.rb +1 -1
- data/lib/ory-client/models/active_project.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_body.rb +24 -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/admin_create_self_service_recovery_link_body.rb +1 -1
- data/lib/ory-client/models/admin_identity_import_credentials.rb +1 -1
- data/lib/ory-client/models/admin_update_identity_body.rb +24 -2
- data/lib/ory-client/models/api_token.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 +22 -2
- data/lib/ory-client/models/create_custom_hostname_body.rb +24 -2
- 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 +286 -0
- data/lib/ory-client/models/generic_error.rb +5 -3
- data/lib/ory-client/models/generic_error_content.rb +1 -1
- data/lib/ory-client/models/get_check_response.rb +225 -0
- data/lib/ory-client/models/get_relation_tuples_response.rb +230 -0
- 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/identity.rb +22 -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.rb +1 -1
- data/lib/ory-client/models/identity_schema_location.rb +1 -1
- data/lib/ory-client/models/identity_schema_preset.rb +1 -1
- data/lib/ory-client/models/identity_schema_validation_result.rb +1 -1
- data/lib/ory-client/models/identity_state.rb +1 -1
- data/lib/ory-client/models/inline_response200.rb +1 -1
- data/lib/ory-client/models/inline_response2001.rb +1 -1
- data/lib/ory-client/models/inline_response503.rb +1 -1
- data/lib/ory-client/models/internal_relation_tuple.rb +273 -0
- 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/json_error.rb +1 -1
- data/lib/ory-client/models/json_patch.rb +1 -1
- data/lib/ory-client/models/keto_namespace.rb +227 -0
- data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
- data/lib/ory-client/models/normalized_project.rb +3 -2
- data/lib/ory-client/models/normalized_project_revision.rb +23 -2
- data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +2 -1
- data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +3 -1
- data/lib/ory-client/models/null_plan.rb +1 -1
- data/lib/ory-client/models/pagination.rb +1 -1
- data/lib/ory-client/models/patch_delta.rb +261 -0
- data/lib/ory-client/models/project.rb +2 -2
- data/lib/ory-client/models/project_host.rb +1 -1
- data/lib/ory-client/models/project_invite.rb +2 -1
- data/lib/ory-client/models/project_metadata.rb +3 -2
- data/lib/ory-client/models/project_service_identity.rb +1 -1
- data/lib/ory-client/models/project_service_permission.rb +223 -0
- data/lib/ory-client/models/project_services.rb +14 -10
- data/lib/ory-client/models/provision_mock_subscription_payload.rb +1 -1
- data/lib/ory-client/models/quota_project_member_seats.rb +1 -1
- data/lib/ory-client/models/recovery_address.rb +1 -1
- data/lib/ory-client/models/relation_query.rb +258 -0
- 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 +1 -1
- data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
- data/lib/ory-client/models/self_service_login_flow.rb +1 -1
- data/lib/ory-client/models/self_service_logout_url.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_flow.rb +6 -1
- 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 +6 -1
- data/lib/ory-client/models/self_service_settings_flow.rb +6 -1
- data/lib/ory-client/models/self_service_settings_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow_state.rb +1 -1
- data/lib/ory-client/models/session.rb +1 -1
- data/lib/ory-client/models/session_authentication_method.rb +3 -3
- data/lib/ory-client/models/session_device.rb +1 -1
- data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-client/models/stripe_customer_response.rb +1 -1
- data/lib/ory-client/models/subject_set.rb +254 -0
- 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 -6
- 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 +1 -1
- 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 +3 -2
- 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/ui_container.rb +1 -1
- data/lib/ory-client/models/ui_node.rb +49 -1
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +2 -1
- data/lib/ory-client/models/ui_node_attributes.rb +3 -3
- data/lib/ory-client/models/ui_node_image_attributes.rb +2 -1
- data/lib/ory-client/models/ui_node_input_attributes.rb +2 -1
- data/lib/ory-client/models/ui_node_meta.rb +1 -1
- data/lib/ory-client/models/ui_node_script_attributes.rb +2 -1
- data/lib/ory-client/models/ui_node_text_attributes.rb +2 -1
- data/lib/ory-client/models/ui_text.rb +1 -1
- data/lib/ory-client/models/update_custom_hostname_body.rb +24 -2
- 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 +1 -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 +12 -1
- data/ory-client.gemspec +1 -1
- data/spec/api/metadata_api_spec.rb +1 -1
- data/spec/api/read_api_spec.rb +102 -0
- data/spec/api/v0alpha2_api_spec.rb +4 -3
- data/spec/api/write_api_spec.rb +77 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/active_project_spec.rb +1 -1
- data/spec/models/admin_create_identity_body_spec.rb +13 -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/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/admin_update_identity_body_spec.rb +13 -1
- data/spec/models/api_token_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 +13 -1
- data/spec/models/create_custom_hostname_body_spec.rb +13 -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 +56 -0
- 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 +34 -0
- data/spec/models/get_relation_tuples_response_spec.rb +40 -0
- data/spec/models/health_not_ready_status_spec.rb +1 -1
- data/spec/models/health_status_spec.rb +1 -1
- 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_location_spec.rb +1 -1
- data/spec/models/identity_schema_preset_spec.rb +1 -1
- data/spec/models/identity_schema_spec.rb +1 -1
- data/spec/models/identity_schema_validation_result_spec.rb +1 -1
- data/spec/models/identity_spec.rb +13 -1
- data/spec/models/identity_state_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/inline_response503_spec.rb +1 -1
- data/spec/models/internal_relation_tuple_spec.rb +58 -0
- 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/json_error_spec.rb +1 -1
- data/spec/models/json_patch_spec.rb +1 -1
- data/spec/models/keto_namespace_spec.rb +40 -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 +13 -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/pagination_spec.rb +1 -1
- data/spec/models/patch_delta_spec.rb +44 -0
- 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_permission_spec.rb +34 -0
- data/spec/models/project_services_spec.rb +7 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/provision_mock_subscription_payload_spec.rb +1 -1
- data/spec/models/quota_project_member_seats_spec.rb +1 -1
- data/spec/models/recovery_address_spec.rb +1 -1
- data/spec/models/relation_query_spec.rb +58 -0
- 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_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 +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/settings_profile_form_config_spec.rb +1 -1
- data/spec/models/stripe_customer_response_spec.rb +1 -1
- data/spec/models/subject_set_spec.rb +46 -0
- 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_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_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/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 +9 -1
- 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 +13 -1
- 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.4.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/stringio-3.0.2.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.3 → psych-4.0.4}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.3 → psych-4.0.4}/gem_make.out +6 -6
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.3 → psych-4.0.4}/mkmf.log +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.3 → psych-4.0.4}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{stringio-3.0.1 → stringio-3.0.2}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{stringio-3.0.1 → stringio-3.0.2}/gem_make.out +6 -6
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{stringio-3.0.1 → stringio-3.0.2}/mkmf.log +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{stringio-3.0.1 → stringio-3.0.2}/stringio.so +0 -0
- 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.3 → psych-4.0.4}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/Gemfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/Mavenfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/README.md +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/bin/console +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/bin/setup +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/api.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/depend +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/dumper.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/extconf.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/loader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3/lib → psych-4.0.4/ext/psych}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_emitter.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_parser.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_to_ruby.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_to_ruby.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_yaml_tree.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_yaml_tree.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/reader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/scanner.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/writer.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/api.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/config.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/dumper.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/loader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/reader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/scanner.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/writer.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/yaml.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/yaml_private.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/class_loader.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/coder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/core_ext.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/exception.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/handler.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/handlers/document_stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/handlers/recorder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/json/ruby_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/json/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/json/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/json/yaml_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/alias.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/document.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/mapping.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/node.rb +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/scalar.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/sequence.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/omap.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/parser.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/scalar_scanner.rb +17 -10
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/set.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/streaming.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/syntax_error.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/versions.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/depth_first.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/emitter.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/json_tree.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/to_ruby.rb +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/visitor.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/yaml_tree.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/y.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych.rb +7 -7
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3/ext/psych → psych-4.0.4/lib}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/psych.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/README.md +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/ext/stringio/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/ext/stringio/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/ext/stringio/extconf.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/ext/stringio/stringio.c +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/ext/stringio/stringio.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1/lib → stringio-3.0.2/ext/stringio}/stringio.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1/ext/stringio → stringio-3.0.2/lib}/stringio.so +0 -0
- data/vendor/bundle/ruby/2.5.0/specifications/{psych-4.0.3.gemspec → psych-4.0.4.gemspec} +3 -3
- data/vendor/bundle/ruby/2.5.0/specifications/{stringio-3.0.1.gemspec → stringio-3.0.2.gemspec} +5 -5
- metadata +154 -110
- data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/stringio-3.0.1.gem +0 -0
data/docs/ReadApi.md
ADDED
@@ -0,0 +1,333 @@
|
|
1
|
+
# OryClient::ReadApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://playground.projects.oryapis.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_check**](ReadApi.md#get_check) | **GET** /relation-tuples/check | Check a relation tuple |
|
8
|
+
| [**get_expand**](ReadApi.md#get_expand) | **GET** /relation-tuples/expand | Expand a Relation Tuple |
|
9
|
+
| [**get_relation_tuples**](ReadApi.md#get_relation_tuples) | **GET** /relation-tuples | Query relation tuples |
|
10
|
+
| [**post_check**](ReadApi.md#post_check) | **POST** /relation-tuples/check | Check a relation tuple |
|
11
|
+
|
12
|
+
|
13
|
+
## get_check
|
14
|
+
|
15
|
+
> <GetCheckResponse> get_check(opts)
|
16
|
+
|
17
|
+
Check a relation tuple
|
18
|
+
|
19
|
+
To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
|
20
|
+
|
21
|
+
### Examples
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'time'
|
25
|
+
require 'ory-client'
|
26
|
+
# setup authorization
|
27
|
+
OryClient.configure do |config|
|
28
|
+
# Configure Bearer authorization: oryAccessToken
|
29
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = OryClient::ReadApi.new
|
33
|
+
opts = {
|
34
|
+
namespace: 'namespace_example', # String | Namespace of the Relation Tuple
|
35
|
+
object: 'object_example', # String | Object of the Relation Tuple
|
36
|
+
relation: 'relation_example', # String | Relation of the Relation Tuple
|
37
|
+
subject_id: 'subject_id_example', # String | SubjectID of the Relation Tuple
|
38
|
+
subject_set_namespace: 'subject_set_namespace_example', # String | Namespace of the Subject Set
|
39
|
+
subject_set_object: 'subject_set_object_example', # String | Object of the Subject Set
|
40
|
+
subject_set_relation: 'subject_set_relation_example', # String | Relation of the Subject Set
|
41
|
+
max_depth: 789 # Integer |
|
42
|
+
}
|
43
|
+
|
44
|
+
begin
|
45
|
+
# Check a relation tuple
|
46
|
+
result = api_instance.get_check(opts)
|
47
|
+
p result
|
48
|
+
rescue OryClient::ApiError => e
|
49
|
+
puts "Error when calling ReadApi->get_check: #{e}"
|
50
|
+
end
|
51
|
+
```
|
52
|
+
|
53
|
+
#### Using the get_check_with_http_info variant
|
54
|
+
|
55
|
+
This returns an Array which contains the response data, status code and headers.
|
56
|
+
|
57
|
+
> <Array(<GetCheckResponse>, Integer, Hash)> get_check_with_http_info(opts)
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
begin
|
61
|
+
# Check a relation tuple
|
62
|
+
data, status_code, headers = api_instance.get_check_with_http_info(opts)
|
63
|
+
p status_code # => 2xx
|
64
|
+
p headers # => { ... }
|
65
|
+
p data # => <GetCheckResponse>
|
66
|
+
rescue OryClient::ApiError => e
|
67
|
+
puts "Error when calling ReadApi->get_check_with_http_info: #{e}"
|
68
|
+
end
|
69
|
+
```
|
70
|
+
|
71
|
+
### Parameters
|
72
|
+
|
73
|
+
| Name | Type | Description | Notes |
|
74
|
+
| ---- | ---- | ----------- | ----- |
|
75
|
+
| **namespace** | **String** | Namespace of the Relation Tuple | [optional] |
|
76
|
+
| **object** | **String** | Object of the Relation Tuple | [optional] |
|
77
|
+
| **relation** | **String** | Relation of the Relation Tuple | [optional] |
|
78
|
+
| **subject_id** | **String** | SubjectID of the Relation Tuple | [optional] |
|
79
|
+
| **subject_set_namespace** | **String** | Namespace of the Subject Set | [optional] |
|
80
|
+
| **subject_set_object** | **String** | Object of the Subject Set | [optional] |
|
81
|
+
| **subject_set_relation** | **String** | Relation of the Subject Set | [optional] |
|
82
|
+
| **max_depth** | **Integer** | | [optional] |
|
83
|
+
|
84
|
+
### Return type
|
85
|
+
|
86
|
+
[**GetCheckResponse**](GetCheckResponse.md)
|
87
|
+
|
88
|
+
### Authorization
|
89
|
+
|
90
|
+
[oryAccessToken](../README.md#oryAccessToken)
|
91
|
+
|
92
|
+
### HTTP request headers
|
93
|
+
|
94
|
+
- **Content-Type**: Not defined
|
95
|
+
- **Accept**: application/json
|
96
|
+
|
97
|
+
|
98
|
+
## get_expand
|
99
|
+
|
100
|
+
> <ExpandTree> get_expand(namespace, object, relation, opts)
|
101
|
+
|
102
|
+
Expand a Relation Tuple
|
103
|
+
|
104
|
+
Use this endpoint to expand a relation tuple.
|
105
|
+
|
106
|
+
### Examples
|
107
|
+
|
108
|
+
```ruby
|
109
|
+
require 'time'
|
110
|
+
require 'ory-client'
|
111
|
+
# setup authorization
|
112
|
+
OryClient.configure do |config|
|
113
|
+
# Configure Bearer authorization: oryAccessToken
|
114
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
115
|
+
end
|
116
|
+
|
117
|
+
api_instance = OryClient::ReadApi.new
|
118
|
+
namespace = 'namespace_example' # String | Namespace of the Subject Set
|
119
|
+
object = 'object_example' # String | Object of the Subject Set
|
120
|
+
relation = 'relation_example' # String | Relation of the Subject Set
|
121
|
+
opts = {
|
122
|
+
max_depth: 789 # Integer |
|
123
|
+
}
|
124
|
+
|
125
|
+
begin
|
126
|
+
# Expand a Relation Tuple
|
127
|
+
result = api_instance.get_expand(namespace, object, relation, opts)
|
128
|
+
p result
|
129
|
+
rescue OryClient::ApiError => e
|
130
|
+
puts "Error when calling ReadApi->get_expand: #{e}"
|
131
|
+
end
|
132
|
+
```
|
133
|
+
|
134
|
+
#### Using the get_expand_with_http_info variant
|
135
|
+
|
136
|
+
This returns an Array which contains the response data, status code and headers.
|
137
|
+
|
138
|
+
> <Array(<ExpandTree>, Integer, Hash)> get_expand_with_http_info(namespace, object, relation, opts)
|
139
|
+
|
140
|
+
```ruby
|
141
|
+
begin
|
142
|
+
# Expand a Relation Tuple
|
143
|
+
data, status_code, headers = api_instance.get_expand_with_http_info(namespace, object, relation, opts)
|
144
|
+
p status_code # => 2xx
|
145
|
+
p headers # => { ... }
|
146
|
+
p data # => <ExpandTree>
|
147
|
+
rescue OryClient::ApiError => e
|
148
|
+
puts "Error when calling ReadApi->get_expand_with_http_info: #{e}"
|
149
|
+
end
|
150
|
+
```
|
151
|
+
|
152
|
+
### Parameters
|
153
|
+
|
154
|
+
| Name | Type | Description | Notes |
|
155
|
+
| ---- | ---- | ----------- | ----- |
|
156
|
+
| **namespace** | **String** | Namespace of the Subject Set | |
|
157
|
+
| **object** | **String** | Object of the Subject Set | |
|
158
|
+
| **relation** | **String** | Relation of the Subject Set | |
|
159
|
+
| **max_depth** | **Integer** | | [optional] |
|
160
|
+
|
161
|
+
### Return type
|
162
|
+
|
163
|
+
[**ExpandTree**](ExpandTree.md)
|
164
|
+
|
165
|
+
### Authorization
|
166
|
+
|
167
|
+
[oryAccessToken](../README.md#oryAccessToken)
|
168
|
+
|
169
|
+
### HTTP request headers
|
170
|
+
|
171
|
+
- **Content-Type**: Not defined
|
172
|
+
- **Accept**: application/json
|
173
|
+
|
174
|
+
|
175
|
+
## get_relation_tuples
|
176
|
+
|
177
|
+
> <GetRelationTuplesResponse> get_relation_tuples(opts)
|
178
|
+
|
179
|
+
Query relation tuples
|
180
|
+
|
181
|
+
Get all relation tuples that match the query. Only the namespace field is required.
|
182
|
+
|
183
|
+
### Examples
|
184
|
+
|
185
|
+
```ruby
|
186
|
+
require 'time'
|
187
|
+
require 'ory-client'
|
188
|
+
# setup authorization
|
189
|
+
OryClient.configure do |config|
|
190
|
+
# Configure Bearer authorization: oryAccessToken
|
191
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
192
|
+
end
|
193
|
+
|
194
|
+
api_instance = OryClient::ReadApi.new
|
195
|
+
opts = {
|
196
|
+
page_token: 'page_token_example', # String |
|
197
|
+
page_size: 789, # Integer |
|
198
|
+
namespace: 'namespace_example', # String | Namespace of the Relation Tuple
|
199
|
+
object: 'object_example', # String | Object of the Relation Tuple
|
200
|
+
relation: 'relation_example', # String | Relation of the Relation Tuple
|
201
|
+
subject_id: 'subject_id_example', # String | SubjectID of the Relation Tuple
|
202
|
+
subject_set_namespace: 'subject_set_namespace_example', # String | Namespace of the Subject Set
|
203
|
+
subject_set_object: 'subject_set_object_example', # String | Object of the Subject Set
|
204
|
+
subject_set_relation: 'subject_set_relation_example' # String | Relation of the Subject Set
|
205
|
+
}
|
206
|
+
|
207
|
+
begin
|
208
|
+
# Query relation tuples
|
209
|
+
result = api_instance.get_relation_tuples(opts)
|
210
|
+
p result
|
211
|
+
rescue OryClient::ApiError => e
|
212
|
+
puts "Error when calling ReadApi->get_relation_tuples: #{e}"
|
213
|
+
end
|
214
|
+
```
|
215
|
+
|
216
|
+
#### Using the get_relation_tuples_with_http_info variant
|
217
|
+
|
218
|
+
This returns an Array which contains the response data, status code and headers.
|
219
|
+
|
220
|
+
> <Array(<GetRelationTuplesResponse>, Integer, Hash)> get_relation_tuples_with_http_info(opts)
|
221
|
+
|
222
|
+
```ruby
|
223
|
+
begin
|
224
|
+
# Query relation tuples
|
225
|
+
data, status_code, headers = api_instance.get_relation_tuples_with_http_info(opts)
|
226
|
+
p status_code # => 2xx
|
227
|
+
p headers # => { ... }
|
228
|
+
p data # => <GetRelationTuplesResponse>
|
229
|
+
rescue OryClient::ApiError => e
|
230
|
+
puts "Error when calling ReadApi->get_relation_tuples_with_http_info: #{e}"
|
231
|
+
end
|
232
|
+
```
|
233
|
+
|
234
|
+
### Parameters
|
235
|
+
|
236
|
+
| Name | Type | Description | Notes |
|
237
|
+
| ---- | ---- | ----------- | ----- |
|
238
|
+
| **page_token** | **String** | | [optional] |
|
239
|
+
| **page_size** | **Integer** | | [optional] |
|
240
|
+
| **namespace** | **String** | Namespace of the Relation Tuple | [optional] |
|
241
|
+
| **object** | **String** | Object of the Relation Tuple | [optional] |
|
242
|
+
| **relation** | **String** | Relation of the Relation Tuple | [optional] |
|
243
|
+
| **subject_id** | **String** | SubjectID of the Relation Tuple | [optional] |
|
244
|
+
| **subject_set_namespace** | **String** | Namespace of the Subject Set | [optional] |
|
245
|
+
| **subject_set_object** | **String** | Object of the Subject Set | [optional] |
|
246
|
+
| **subject_set_relation** | **String** | Relation of the Subject Set | [optional] |
|
247
|
+
|
248
|
+
### Return type
|
249
|
+
|
250
|
+
[**GetRelationTuplesResponse**](GetRelationTuplesResponse.md)
|
251
|
+
|
252
|
+
### Authorization
|
253
|
+
|
254
|
+
[oryAccessToken](../README.md#oryAccessToken)
|
255
|
+
|
256
|
+
### HTTP request headers
|
257
|
+
|
258
|
+
- **Content-Type**: Not defined
|
259
|
+
- **Accept**: application/json
|
260
|
+
|
261
|
+
|
262
|
+
## post_check
|
263
|
+
|
264
|
+
> <GetCheckResponse> post_check(opts)
|
265
|
+
|
266
|
+
Check a relation tuple
|
267
|
+
|
268
|
+
To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
|
269
|
+
|
270
|
+
### Examples
|
271
|
+
|
272
|
+
```ruby
|
273
|
+
require 'time'
|
274
|
+
require 'ory-client'
|
275
|
+
# setup authorization
|
276
|
+
OryClient.configure do |config|
|
277
|
+
# Configure Bearer authorization: oryAccessToken
|
278
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
279
|
+
end
|
280
|
+
|
281
|
+
api_instance = OryClient::ReadApi.new
|
282
|
+
opts = {
|
283
|
+
max_depth: 789, # Integer |
|
284
|
+
relation_query: OryClient::RelationQuery.new # RelationQuery |
|
285
|
+
}
|
286
|
+
|
287
|
+
begin
|
288
|
+
# Check a relation tuple
|
289
|
+
result = api_instance.post_check(opts)
|
290
|
+
p result
|
291
|
+
rescue OryClient::ApiError => e
|
292
|
+
puts "Error when calling ReadApi->post_check: #{e}"
|
293
|
+
end
|
294
|
+
```
|
295
|
+
|
296
|
+
#### Using the post_check_with_http_info variant
|
297
|
+
|
298
|
+
This returns an Array which contains the response data, status code and headers.
|
299
|
+
|
300
|
+
> <Array(<GetCheckResponse>, Integer, Hash)> post_check_with_http_info(opts)
|
301
|
+
|
302
|
+
```ruby
|
303
|
+
begin
|
304
|
+
# Check a relation tuple
|
305
|
+
data, status_code, headers = api_instance.post_check_with_http_info(opts)
|
306
|
+
p status_code # => 2xx
|
307
|
+
p headers # => { ... }
|
308
|
+
p data # => <GetCheckResponse>
|
309
|
+
rescue OryClient::ApiError => e
|
310
|
+
puts "Error when calling ReadApi->post_check_with_http_info: #{e}"
|
311
|
+
end
|
312
|
+
```
|
313
|
+
|
314
|
+
### Parameters
|
315
|
+
|
316
|
+
| Name | Type | Description | Notes |
|
317
|
+
| ---- | ---- | ----------- | ----- |
|
318
|
+
| **max_depth** | **Integer** | | [optional] |
|
319
|
+
| **relation_query** | [**RelationQuery**](RelationQuery.md) | | [optional] |
|
320
|
+
|
321
|
+
### Return type
|
322
|
+
|
323
|
+
[**GetCheckResponse**](GetCheckResponse.md)
|
324
|
+
|
325
|
+
### Authorization
|
326
|
+
|
327
|
+
[oryAccessToken](../README.md#oryAccessToken)
|
328
|
+
|
329
|
+
### HTTP request headers
|
330
|
+
|
331
|
+
- **Content-Type**: application/json
|
332
|
+
- **Accept**: application/json
|
333
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# OryClient::RelationQuery
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **namespace** | **String** | Namespace of the Relation Tuple | [optional] |
|
8
|
+
| **object** | **String** | Object of the Relation Tuple | [optional] |
|
9
|
+
| **relation** | **String** | Relation of the Relation Tuple | [optional] |
|
10
|
+
| **subject_id** | **String** | SubjectID of the Relation Tuple Either SubjectSet or SubjectID can be provided. | [optional] |
|
11
|
+
| **subject_set** | [**SubjectSet**](SubjectSet.md) | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'ory-client'
|
17
|
+
|
18
|
+
instance = OryClient::RelationQuery.new(
|
19
|
+
namespace: null,
|
20
|
+
object: null,
|
21
|
+
relation: null,
|
22
|
+
subject_id: null,
|
23
|
+
subject_set: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -11,7 +11,7 @@
|
|
11
11
|
| **request_url** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | |
|
12
12
|
| **return_to** | **String** | ReturnTo contains the requested return_to URL. | [optional] |
|
13
13
|
| **state** | [**SelfServiceRecoveryFlowState**](SelfServiceRecoveryFlowState.md) | | |
|
14
|
-
| **type** | **String** | The flow type can either be `api` or `browser`. |
|
14
|
+
| **type** | **String** | The flow type can either be `api` or `browser`. | |
|
15
15
|
| **ui** | [**UiContainer**](UiContainer.md) | | |
|
16
16
|
|
17
17
|
## Example
|
@@ -10,7 +10,7 @@
|
|
10
10
|
| **issued_at** | **Time** | IssuedAt is the time (UTC) when the flow occurred. | |
|
11
11
|
| **request_url** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | |
|
12
12
|
| **return_to** | **String** | ReturnTo contains the requested return_to URL. | [optional] |
|
13
|
-
| **type** | **String** | The flow type can either be `api` or `browser`. |
|
13
|
+
| **type** | **String** | The flow type can either be `api` or `browser`. | |
|
14
14
|
| **ui** | [**UiContainer**](UiContainer.md) | | |
|
15
15
|
|
16
16
|
## Example
|
@@ -12,7 +12,7 @@
|
|
12
12
|
| **request_url** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | |
|
13
13
|
| **return_to** | **String** | ReturnTo contains the requested return_to URL. | [optional] |
|
14
14
|
| **state** | [**SelfServiceSettingsFlowState**](SelfServiceSettingsFlowState.md) | | |
|
15
|
-
| **type** | **String** | The flow type can either be `api` or `browser`. |
|
15
|
+
| **type** | **String** | The flow type can either be `api` or `browser`. | |
|
16
16
|
| **ui** | [**UiContainer**](UiContainer.md) | | |
|
17
17
|
|
18
18
|
## Example
|
data/docs/SubjectSet.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# OryClient::SubjectSet
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **namespace** | **String** | Namespace of the Subject Set | |
|
8
|
+
| **object** | **String** | Object of the Subject Set | |
|
9
|
+
| **relation** | **String** | Relation of the Subject Set | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ory-client'
|
15
|
+
|
16
|
+
instance = OryClient::SubjectSet.new(
|
17
|
+
namespace: null,
|
18
|
+
object: null,
|
19
|
+
relation: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -8,7 +8,7 @@
|
|
8
8
|
| **identifier** | **String** | Identifier is the email or username of the user trying to log in. | |
|
9
9
|
| **method** | **String** | Method should be set to \"password\" when logging in using the identifier and password strategy. | |
|
10
10
|
| **password** | **String** | The user's password. | |
|
11
|
-
| **password_identifier** | **String** | Identifier is the email or username of the user trying to log in. This field is deprecated! |
|
11
|
+
| **password_identifier** | **String** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] |
|
12
12
|
|
13
13
|
## Example
|
14
14
|
|
data/docs/Subscription.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **created_at** | **Time** | | [readonly] |
|
8
|
-
| **current_plan** | **String** | The currently active plan of the subscription | [readonly] |
|
8
|
+
| **current_plan** | **String** | The currently active plan of the subscription unknown Unknown free Free start_up_monthly StartUpMonthly start_up_yearly StartUpYearly custom Custom | [readonly] |
|
9
9
|
| **customer_id** | **String** | The ID of the stripe customer | [readonly] |
|
10
10
|
| **id** | **String** | | |
|
11
11
|
| **ongoing_stripe_checkout_id** | **String** | | [optional] |
|
data/docs/UiNode.md
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **attributes** | [**UiNodeAttributes**](UiNodeAttributes.md) | | |
|
8
|
-
| **group** | **String** |
|
8
|
+
| **group** | **String** | Group specifies which group (e.g. password authenticator) this node belongs to. | |
|
9
9
|
| **messages** | [**Array<UiText>**](UiText.md) | | |
|
10
10
|
| **meta** | [**UiNodeMeta**](UiNodeMeta.md) | | |
|
11
|
-
| **type** | **String** |
|
11
|
+
| **type** | **String** | The node's type | |
|
12
12
|
|
13
13
|
## Example
|
14
14
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **href** | **String** | The link's href (destination) URL. format: uri | |
|
8
8
|
| **id** | **String** | A unique identifier | |
|
9
|
-
| **node_type** | **String** | | |
|
9
|
+
| **node_type** | **String** | NodeType represents this node's types. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"a\". | |
|
10
10
|
| **title** | [**UiText**](UiText.md) | | |
|
11
11
|
|
12
12
|
## Example
|
data/docs/UiNodeAttributes.md
CHANGED
@@ -47,8 +47,8 @@ require 'ory-client'
|
|
47
47
|
OryClient::UiNodeAttributes.openapi_discriminator_mapping
|
48
48
|
# =>
|
49
49
|
# {
|
50
|
-
# :'
|
51
|
-
# :'
|
50
|
+
# :'a' => :'UiNodeAnchorAttributes',
|
51
|
+
# :'img' => :'UiNodeImageAttributes',
|
52
52
|
# :'input' => :'UiNodeInputAttributes',
|
53
53
|
# :'script' => :'UiNodeScriptAttributes',
|
54
54
|
# :'text' => :'UiNodeTextAttributes'
|
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **height** | **Integer** | Height of the image | |
|
8
8
|
| **id** | **String** | A unique identifier | |
|
9
|
-
| **node_type** | **String** | | |
|
9
|
+
| **node_type** | **String** | NodeType represents this node's types. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"img\". | |
|
10
10
|
| **src** | **String** | The image's source URL. format: uri | |
|
11
11
|
| **width** | **Integer** | Width of the image | |
|
12
12
|
|
@@ -7,7 +7,7 @@
|
|
7
7
|
| **disabled** | **Boolean** | Sets the input's disabled field to true or false. | |
|
8
8
|
| **label** | [**UiText**](UiText.md) | | [optional] |
|
9
9
|
| **name** | **String** | The input's element name. | |
|
10
|
-
| **node_type** | **String** | | |
|
10
|
+
| **node_type** | **String** | NodeType represents this node's types. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"input\". | |
|
11
11
|
| **onclick** | **String** | OnClick may contain javascript which should be executed on click. This is primarily used for WebAuthn. | [optional] |
|
12
12
|
| **pattern** | **String** | The input's pattern. | [optional] |
|
13
13
|
| **required** | **Boolean** | Mark this input field as required. | [optional] |
|
@@ -8,7 +8,7 @@
|
|
8
8
|
| **crossorigin** | **String** | The script cross origin policy | |
|
9
9
|
| **id** | **String** | A unique identifier | |
|
10
10
|
| **integrity** | **String** | The script's integrity hash | |
|
11
|
-
| **node_type** | **String** |
|
11
|
+
| **node_type** | **String** | NodeType represents this node's types. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"script\". | |
|
12
12
|
| **nonce** | **String** | Nonce for CSP A nonce you may want to use to improve your Content Security Policy. You do not have to use this value but if you want to improve your CSP policies you may use it. You can also choose to use your own nonce value! | |
|
13
13
|
| **referrerpolicy** | **String** | The script referrer policy | |
|
14
14
|
| **src** | **String** | The script source | |
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **id** | **String** | A unique identifier | |
|
8
|
-
| **node_type** | **String** | | |
|
8
|
+
| **node_type** | **String** | NodeType represents this node's types. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"text\". | |
|
9
9
|
| **text** | [**UiText**](UiText.md) | | |
|
10
10
|
|
11
11
|
## Example
|
@@ -5,6 +5,8 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **cookie_domain** | **String** | The domain where cookies will be set. Has to be a parent domain of the custom hostname to work. | [optional] |
|
8
|
+
| **cors_allowed_origins** | **Array<String>** | Cors Allowed origins for the custom hostname. | [optional] |
|
9
|
+
| **cors_enabled** | **Boolean** | Cors Enabled for the custom hostname. | [optional] |
|
8
10
|
| **hostname** | **String** | The custom hostname where the API will be exposed. | [optional] |
|
9
11
|
|
10
12
|
## Example
|
@@ -14,6 +16,8 @@ require 'ory-client'
|
|
14
16
|
|
15
17
|
instance = OryClient::UpdateCustomHostnameBody.new(
|
16
18
|
cookie_domain: null,
|
19
|
+
cors_allowed_origins: null,
|
20
|
+
cors_enabled: null,
|
17
21
|
hostname: null
|
18
22
|
)
|
19
23
|
```
|
data/docs/V0alpha2Api.md
CHANGED
@@ -60,7 +60,7 @@ All URIs are relative to *https://playground.projects.oryapis.com*
|
|
60
60
|
|
61
61
|
Create an Identity
|
62
62
|
|
63
|
-
This endpoint creates an identity.
|
63
|
+
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).
|
64
64
|
|
65
65
|
### Examples
|
66
66
|
|
@@ -630,7 +630,7 @@ end
|
|
630
630
|
|
631
631
|
Update an Identity
|
632
632
|
|
633
|
-
This endpoint updates an identity.
|
633
|
+
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).
|
634
634
|
|
635
635
|
### Examples
|
636
636
|
|
@@ -2722,6 +2722,7 @@ api_instance = OryClient::V0alpha2Api.new
|
|
2722
2722
|
flow = 'flow_example' # String | The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`).
|
2723
2723
|
opts = {
|
2724
2724
|
x_session_token: 'x_session_token_example', # String | The Session Token of the Identity performing the settings flow.
|
2725
|
+
cookie: 'cookie_example', # String | CSRF Cookie The CSRF cookie for browsers flow.
|
2725
2726
|
submit_self_service_login_flow_body: OryClient::SubmitSelfServiceLoginFlowWithLookupSecretMethodBody.new({lookup_secret: 'lookup_secret_example', method: 'method_example'}) # SubmitSelfServiceLoginFlowBody |
|
2726
2727
|
}
|
2727
2728
|
|
@@ -2758,6 +2759,7 @@ end
|
|
2758
2759
|
| ---- | ---- | ----------- | ----- |
|
2759
2760
|
| **flow** | **String** | The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`). | |
|
2760
2761
|
| **x_session_token** | **String** | The Session Token of the Identity performing the settings flow. | [optional] |
|
2762
|
+
| **cookie** | **String** | CSRF Cookie The CSRF cookie for browsers flow. | [optional] |
|
2761
2763
|
| **submit_self_service_login_flow_body** | [**SubmitSelfServiceLoginFlowBody**](SubmitSelfServiceLoginFlowBody.md) | | [optional] |
|
2762
2764
|
|
2763
2765
|
### Return type
|
@@ -3272,7 +3274,7 @@ end
|
|
3272
3274
|
api_instance = OryClient::V0alpha2Api.new
|
3273
3275
|
project_id = 'project_id_example' # String | Project ID The project's ID.
|
3274
3276
|
opts = {
|
3275
|
-
update_project: OryClient::UpdateProject.new({name: 'name_example', services: OryClient::ProjectServices.new
|
3277
|
+
update_project: OryClient::UpdateProject.new({name: 'name_example', services: OryClient::ProjectServices.new}) # UpdateProject |
|
3276
3278
|
}
|
3277
3279
|
|
3278
3280
|
begin
|