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/WriteApi.md
ADDED
@@ -0,0 +1,233 @@
|
|
1
|
+
# OryClient::WriteApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://playground.projects.oryapis.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_relation_tuple**](WriteApi.md#create_relation_tuple) | **PUT** /admin/relation-tuples | Create a Relation Tuple |
|
8
|
+
| [**delete_relation_tuples**](WriteApi.md#delete_relation_tuples) | **DELETE** /admin/relation-tuples | Delete Relation Tuples |
|
9
|
+
| [**patch_relation_tuples**](WriteApi.md#patch_relation_tuples) | **PATCH** /admin/relation-tuples | Patch Multiple Relation Tuples |
|
10
|
+
|
11
|
+
|
12
|
+
## create_relation_tuple
|
13
|
+
|
14
|
+
> <RelationQuery> create_relation_tuple(opts)
|
15
|
+
|
16
|
+
Create a Relation Tuple
|
17
|
+
|
18
|
+
Use this endpoint to create a relation tuple.
|
19
|
+
|
20
|
+
### Examples
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'time'
|
24
|
+
require 'ory-client'
|
25
|
+
# setup authorization
|
26
|
+
OryClient.configure do |config|
|
27
|
+
# Configure Bearer authorization: oryAccessToken
|
28
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = OryClient::WriteApi.new
|
32
|
+
opts = {
|
33
|
+
relation_query: OryClient::RelationQuery.new # RelationQuery |
|
34
|
+
}
|
35
|
+
|
36
|
+
begin
|
37
|
+
# Create a Relation Tuple
|
38
|
+
result = api_instance.create_relation_tuple(opts)
|
39
|
+
p result
|
40
|
+
rescue OryClient::ApiError => e
|
41
|
+
puts "Error when calling WriteApi->create_relation_tuple: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
#### Using the create_relation_tuple_with_http_info variant
|
46
|
+
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
48
|
+
|
49
|
+
> <Array(<RelationQuery>, Integer, Hash)> create_relation_tuple_with_http_info(opts)
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
begin
|
53
|
+
# Create a Relation Tuple
|
54
|
+
data, status_code, headers = api_instance.create_relation_tuple_with_http_info(opts)
|
55
|
+
p status_code # => 2xx
|
56
|
+
p headers # => { ... }
|
57
|
+
p data # => <RelationQuery>
|
58
|
+
rescue OryClient::ApiError => e
|
59
|
+
puts "Error when calling WriteApi->create_relation_tuple_with_http_info: #{e}"
|
60
|
+
end
|
61
|
+
```
|
62
|
+
|
63
|
+
### Parameters
|
64
|
+
|
65
|
+
| Name | Type | Description | Notes |
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
67
|
+
| **relation_query** | [**RelationQuery**](RelationQuery.md) | | [optional] |
|
68
|
+
|
69
|
+
### Return type
|
70
|
+
|
71
|
+
[**RelationQuery**](RelationQuery.md)
|
72
|
+
|
73
|
+
### Authorization
|
74
|
+
|
75
|
+
[oryAccessToken](../README.md#oryAccessToken)
|
76
|
+
|
77
|
+
### HTTP request headers
|
78
|
+
|
79
|
+
- **Content-Type**: application/json
|
80
|
+
- **Accept**: application/json
|
81
|
+
|
82
|
+
|
83
|
+
## delete_relation_tuples
|
84
|
+
|
85
|
+
> delete_relation_tuples(opts)
|
86
|
+
|
87
|
+
Delete Relation Tuples
|
88
|
+
|
89
|
+
Use this endpoint to delete relation tuples
|
90
|
+
|
91
|
+
### Examples
|
92
|
+
|
93
|
+
```ruby
|
94
|
+
require 'time'
|
95
|
+
require 'ory-client'
|
96
|
+
# setup authorization
|
97
|
+
OryClient.configure do |config|
|
98
|
+
# Configure Bearer authorization: oryAccessToken
|
99
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
100
|
+
end
|
101
|
+
|
102
|
+
api_instance = OryClient::WriteApi.new
|
103
|
+
opts = {
|
104
|
+
namespace: 'namespace_example', # String | Namespace of the Relation Tuple
|
105
|
+
object: 'object_example', # String | Object of the Relation Tuple
|
106
|
+
relation: 'relation_example', # String | Relation of the Relation Tuple
|
107
|
+
subject_id: 'subject_id_example', # String | SubjectID of the Relation Tuple
|
108
|
+
subject_set_namespace: 'subject_set_namespace_example', # String | Namespace of the Subject Set
|
109
|
+
subject_set_object: 'subject_set_object_example', # String | Object of the Subject Set
|
110
|
+
subject_set_relation: 'subject_set_relation_example' # String | Relation of the Subject Set
|
111
|
+
}
|
112
|
+
|
113
|
+
begin
|
114
|
+
# Delete Relation Tuples
|
115
|
+
api_instance.delete_relation_tuples(opts)
|
116
|
+
rescue OryClient::ApiError => e
|
117
|
+
puts "Error when calling WriteApi->delete_relation_tuples: #{e}"
|
118
|
+
end
|
119
|
+
```
|
120
|
+
|
121
|
+
#### Using the delete_relation_tuples_with_http_info variant
|
122
|
+
|
123
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
124
|
+
|
125
|
+
> <Array(nil, Integer, Hash)> delete_relation_tuples_with_http_info(opts)
|
126
|
+
|
127
|
+
```ruby
|
128
|
+
begin
|
129
|
+
# Delete Relation Tuples
|
130
|
+
data, status_code, headers = api_instance.delete_relation_tuples_with_http_info(opts)
|
131
|
+
p status_code # => 2xx
|
132
|
+
p headers # => { ... }
|
133
|
+
p data # => nil
|
134
|
+
rescue OryClient::ApiError => e
|
135
|
+
puts "Error when calling WriteApi->delete_relation_tuples_with_http_info: #{e}"
|
136
|
+
end
|
137
|
+
```
|
138
|
+
|
139
|
+
### Parameters
|
140
|
+
|
141
|
+
| Name | Type | Description | Notes |
|
142
|
+
| ---- | ---- | ----------- | ----- |
|
143
|
+
| **namespace** | **String** | Namespace of the Relation Tuple | [optional] |
|
144
|
+
| **object** | **String** | Object of the Relation Tuple | [optional] |
|
145
|
+
| **relation** | **String** | Relation of the Relation Tuple | [optional] |
|
146
|
+
| **subject_id** | **String** | SubjectID of the Relation Tuple | [optional] |
|
147
|
+
| **subject_set_namespace** | **String** | Namespace of the Subject Set | [optional] |
|
148
|
+
| **subject_set_object** | **String** | Object of the Subject Set | [optional] |
|
149
|
+
| **subject_set_relation** | **String** | Relation of the Subject Set | [optional] |
|
150
|
+
|
151
|
+
### Return type
|
152
|
+
|
153
|
+
nil (empty response body)
|
154
|
+
|
155
|
+
### Authorization
|
156
|
+
|
157
|
+
[oryAccessToken](../README.md#oryAccessToken)
|
158
|
+
|
159
|
+
### HTTP request headers
|
160
|
+
|
161
|
+
- **Content-Type**: Not defined
|
162
|
+
- **Accept**: application/json
|
163
|
+
|
164
|
+
|
165
|
+
## patch_relation_tuples
|
166
|
+
|
167
|
+
> patch_relation_tuples(opts)
|
168
|
+
|
169
|
+
Patch Multiple Relation Tuples
|
170
|
+
|
171
|
+
Use this endpoint to patch one or more relation tuples.
|
172
|
+
|
173
|
+
### Examples
|
174
|
+
|
175
|
+
```ruby
|
176
|
+
require 'time'
|
177
|
+
require 'ory-client'
|
178
|
+
# setup authorization
|
179
|
+
OryClient.configure do |config|
|
180
|
+
# Configure Bearer authorization: oryAccessToken
|
181
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
182
|
+
end
|
183
|
+
|
184
|
+
api_instance = OryClient::WriteApi.new
|
185
|
+
opts = {
|
186
|
+
patch_delta: [OryClient::PatchDelta.new] # Array<PatchDelta> |
|
187
|
+
}
|
188
|
+
|
189
|
+
begin
|
190
|
+
# Patch Multiple Relation Tuples
|
191
|
+
api_instance.patch_relation_tuples(opts)
|
192
|
+
rescue OryClient::ApiError => e
|
193
|
+
puts "Error when calling WriteApi->patch_relation_tuples: #{e}"
|
194
|
+
end
|
195
|
+
```
|
196
|
+
|
197
|
+
#### Using the patch_relation_tuples_with_http_info variant
|
198
|
+
|
199
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
200
|
+
|
201
|
+
> <Array(nil, Integer, Hash)> patch_relation_tuples_with_http_info(opts)
|
202
|
+
|
203
|
+
```ruby
|
204
|
+
begin
|
205
|
+
# Patch Multiple Relation Tuples
|
206
|
+
data, status_code, headers = api_instance.patch_relation_tuples_with_http_info(opts)
|
207
|
+
p status_code # => 2xx
|
208
|
+
p headers # => { ... }
|
209
|
+
p data # => nil
|
210
|
+
rescue OryClient::ApiError => e
|
211
|
+
puts "Error when calling WriteApi->patch_relation_tuples_with_http_info: #{e}"
|
212
|
+
end
|
213
|
+
```
|
214
|
+
|
215
|
+
### Parameters
|
216
|
+
|
217
|
+
| Name | Type | Description | Notes |
|
218
|
+
| ---- | ---- | ----------- | ----- |
|
219
|
+
| **patch_delta** | [**Array<PatchDelta>**](PatchDelta.md) | | [optional] |
|
220
|
+
|
221
|
+
### Return type
|
222
|
+
|
223
|
+
nil (empty response body)
|
224
|
+
|
225
|
+
### Authorization
|
226
|
+
|
227
|
+
[oryAccessToken](../README.md#oryAccessToken)
|
228
|
+
|
229
|
+
### HTTP request headers
|
230
|
+
|
231
|
+
- **Content-Type**: application/json
|
232
|
+
- **Accept**: application/json
|
233
|
+
|
@@ -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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.177
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -57,7 +57,7 @@ module OryClient
|
|
57
57
|
return_type = opts[:debug_return_type] || 'InlineResponse2001'
|
58
58
|
|
59
59
|
# auth_names
|
60
|
-
auth_names = opts[:debug_auth_names] || []
|
60
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
61
61
|
|
62
62
|
new_options = opts.merge(
|
63
63
|
:operation => :"MetadataApi.get_version",
|
@@ -114,7 +114,7 @@ module OryClient
|
|
114
114
|
return_type = opts[:debug_return_type] || 'InlineResponse200'
|
115
115
|
|
116
116
|
# auth_names
|
117
|
-
auth_names = opts[:debug_auth_names] || []
|
117
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
118
118
|
|
119
119
|
new_options = opts.merge(
|
120
120
|
:operation => :"MetadataApi.is_alive",
|
@@ -171,7 +171,7 @@ module OryClient
|
|
171
171
|
return_type = opts[:debug_return_type] || 'InlineResponse200'
|
172
172
|
|
173
173
|
# auth_names
|
174
|
-
auth_names = opts[:debug_auth_names] || []
|
174
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
175
175
|
|
176
176
|
new_options = opts.merge(
|
177
177
|
:operation => :"MetadataApi.is_ready",
|
@@ -0,0 +1,335 @@
|
|
1
|
+
=begin
|
2
|
+
#Ory APIs
|
3
|
+
|
4
|
+
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.177
|
7
|
+
Contact: support@ory.sh
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module OryClient
|
16
|
+
class ReadApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Check a relation tuple
|
23
|
+
# To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :namespace Namespace of the Relation Tuple
|
26
|
+
# @option opts [String] :object Object of the Relation Tuple
|
27
|
+
# @option opts [String] :relation Relation of the Relation Tuple
|
28
|
+
# @option opts [String] :subject_id SubjectID of the Relation Tuple
|
29
|
+
# @option opts [String] :subject_set_namespace Namespace of the Subject Set
|
30
|
+
# @option opts [String] :subject_set_object Object of the Subject Set
|
31
|
+
# @option opts [String] :subject_set_relation Relation of the Subject Set
|
32
|
+
# @option opts [Integer] :max_depth
|
33
|
+
# @return [GetCheckResponse]
|
34
|
+
def get_check(opts = {})
|
35
|
+
data, _status_code, _headers = get_check_with_http_info(opts)
|
36
|
+
data
|
37
|
+
end
|
38
|
+
|
39
|
+
# Check a relation tuple
|
40
|
+
# To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [String] :namespace Namespace of the Relation Tuple
|
43
|
+
# @option opts [String] :object Object of the Relation Tuple
|
44
|
+
# @option opts [String] :relation Relation of the Relation Tuple
|
45
|
+
# @option opts [String] :subject_id SubjectID of the Relation Tuple
|
46
|
+
# @option opts [String] :subject_set_namespace Namespace of the Subject Set
|
47
|
+
# @option opts [String] :subject_set_object Object of the Subject Set
|
48
|
+
# @option opts [String] :subject_set_relation Relation of the Subject Set
|
49
|
+
# @option opts [Integer] :max_depth
|
50
|
+
# @return [Array<(GetCheckResponse, Integer, Hash)>] GetCheckResponse data, response status code and response headers
|
51
|
+
def get_check_with_http_info(opts = {})
|
52
|
+
if @api_client.config.debugging
|
53
|
+
@api_client.config.logger.debug 'Calling API: ReadApi.get_check ...'
|
54
|
+
end
|
55
|
+
# resource path
|
56
|
+
local_var_path = '/relation-tuples/check'
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = opts[:query_params] || {}
|
60
|
+
query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
|
61
|
+
query_params[:'object'] = opts[:'object'] if !opts[:'object'].nil?
|
62
|
+
query_params[:'relation'] = opts[:'relation'] if !opts[:'relation'].nil?
|
63
|
+
query_params[:'subject_id'] = opts[:'subject_id'] if !opts[:'subject_id'].nil?
|
64
|
+
query_params[:'subject_set.namespace'] = opts[:'subject_set_namespace'] if !opts[:'subject_set_namespace'].nil?
|
65
|
+
query_params[:'subject_set.object'] = opts[:'subject_set_object'] if !opts[:'subject_set_object'].nil?
|
66
|
+
query_params[:'subject_set.relation'] = opts[:'subject_set_relation'] if !opts[:'subject_set_relation'].nil?
|
67
|
+
query_params[:'max-depth'] = opts[:'max_depth'] if !opts[:'max_depth'].nil?
|
68
|
+
|
69
|
+
# header parameters
|
70
|
+
header_params = opts[:header_params] || {}
|
71
|
+
# HTTP header 'Accept' (if needed)
|
72
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
73
|
+
|
74
|
+
# form parameters
|
75
|
+
form_params = opts[:form_params] || {}
|
76
|
+
|
77
|
+
# http body (model)
|
78
|
+
post_body = opts[:debug_body]
|
79
|
+
|
80
|
+
# return_type
|
81
|
+
return_type = opts[:debug_return_type] || 'GetCheckResponse'
|
82
|
+
|
83
|
+
# auth_names
|
84
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
85
|
+
|
86
|
+
new_options = opts.merge(
|
87
|
+
:operation => :"ReadApi.get_check",
|
88
|
+
:header_params => header_params,
|
89
|
+
:query_params => query_params,
|
90
|
+
:form_params => form_params,
|
91
|
+
:body => post_body,
|
92
|
+
:auth_names => auth_names,
|
93
|
+
:return_type => return_type
|
94
|
+
)
|
95
|
+
|
96
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
97
|
+
if @api_client.config.debugging
|
98
|
+
@api_client.config.logger.debug "API called: ReadApi#get_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
99
|
+
end
|
100
|
+
return data, status_code, headers
|
101
|
+
end
|
102
|
+
|
103
|
+
# Expand a Relation Tuple
|
104
|
+
# Use this endpoint to expand a relation tuple.
|
105
|
+
# @param namespace [String] Namespace of the Subject Set
|
106
|
+
# @param object [String] Object of the Subject Set
|
107
|
+
# @param relation [String] Relation of the Subject Set
|
108
|
+
# @param [Hash] opts the optional parameters
|
109
|
+
# @option opts [Integer] :max_depth
|
110
|
+
# @return [ExpandTree]
|
111
|
+
def get_expand(namespace, object, relation, opts = {})
|
112
|
+
data, _status_code, _headers = get_expand_with_http_info(namespace, object, relation, opts)
|
113
|
+
data
|
114
|
+
end
|
115
|
+
|
116
|
+
# Expand a Relation Tuple
|
117
|
+
# Use this endpoint to expand a relation tuple.
|
118
|
+
# @param namespace [String] Namespace of the Subject Set
|
119
|
+
# @param object [String] Object of the Subject Set
|
120
|
+
# @param relation [String] Relation of the Subject Set
|
121
|
+
# @param [Hash] opts the optional parameters
|
122
|
+
# @option opts [Integer] :max_depth
|
123
|
+
# @return [Array<(ExpandTree, Integer, Hash)>] ExpandTree data, response status code and response headers
|
124
|
+
def get_expand_with_http_info(namespace, object, relation, opts = {})
|
125
|
+
if @api_client.config.debugging
|
126
|
+
@api_client.config.logger.debug 'Calling API: ReadApi.get_expand ...'
|
127
|
+
end
|
128
|
+
# verify the required parameter 'namespace' is set
|
129
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
130
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ReadApi.get_expand"
|
131
|
+
end
|
132
|
+
# verify the required parameter 'object' is set
|
133
|
+
if @api_client.config.client_side_validation && object.nil?
|
134
|
+
fail ArgumentError, "Missing the required parameter 'object' when calling ReadApi.get_expand"
|
135
|
+
end
|
136
|
+
# verify the required parameter 'relation' is set
|
137
|
+
if @api_client.config.client_side_validation && relation.nil?
|
138
|
+
fail ArgumentError, "Missing the required parameter 'relation' when calling ReadApi.get_expand"
|
139
|
+
end
|
140
|
+
# resource path
|
141
|
+
local_var_path = '/relation-tuples/expand'
|
142
|
+
|
143
|
+
# query parameters
|
144
|
+
query_params = opts[:query_params] || {}
|
145
|
+
query_params[:'namespace'] = namespace
|
146
|
+
query_params[:'object'] = object
|
147
|
+
query_params[:'relation'] = relation
|
148
|
+
query_params[:'max-depth'] = opts[:'max_depth'] if !opts[:'max_depth'].nil?
|
149
|
+
|
150
|
+
# header parameters
|
151
|
+
header_params = opts[:header_params] || {}
|
152
|
+
# HTTP header 'Accept' (if needed)
|
153
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
154
|
+
|
155
|
+
# form parameters
|
156
|
+
form_params = opts[:form_params] || {}
|
157
|
+
|
158
|
+
# http body (model)
|
159
|
+
post_body = opts[:debug_body]
|
160
|
+
|
161
|
+
# return_type
|
162
|
+
return_type = opts[:debug_return_type] || 'ExpandTree'
|
163
|
+
|
164
|
+
# auth_names
|
165
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
166
|
+
|
167
|
+
new_options = opts.merge(
|
168
|
+
:operation => :"ReadApi.get_expand",
|
169
|
+
:header_params => header_params,
|
170
|
+
:query_params => query_params,
|
171
|
+
:form_params => form_params,
|
172
|
+
:body => post_body,
|
173
|
+
:auth_names => auth_names,
|
174
|
+
:return_type => return_type
|
175
|
+
)
|
176
|
+
|
177
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
178
|
+
if @api_client.config.debugging
|
179
|
+
@api_client.config.logger.debug "API called: ReadApi#get_expand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
180
|
+
end
|
181
|
+
return data, status_code, headers
|
182
|
+
end
|
183
|
+
|
184
|
+
# Query relation tuples
|
185
|
+
# Get all relation tuples that match the query. Only the namespace field is required.
|
186
|
+
# @param [Hash] opts the optional parameters
|
187
|
+
# @option opts [String] :page_token
|
188
|
+
# @option opts [Integer] :page_size
|
189
|
+
# @option opts [String] :namespace Namespace of the Relation Tuple
|
190
|
+
# @option opts [String] :object Object of the Relation Tuple
|
191
|
+
# @option opts [String] :relation Relation of the Relation Tuple
|
192
|
+
# @option opts [String] :subject_id SubjectID of the Relation Tuple
|
193
|
+
# @option opts [String] :subject_set_namespace Namespace of the Subject Set
|
194
|
+
# @option opts [String] :subject_set_object Object of the Subject Set
|
195
|
+
# @option opts [String] :subject_set_relation Relation of the Subject Set
|
196
|
+
# @return [GetRelationTuplesResponse]
|
197
|
+
def get_relation_tuples(opts = {})
|
198
|
+
data, _status_code, _headers = get_relation_tuples_with_http_info(opts)
|
199
|
+
data
|
200
|
+
end
|
201
|
+
|
202
|
+
# Query relation tuples
|
203
|
+
# Get all relation tuples that match the query. Only the namespace field is required.
|
204
|
+
# @param [Hash] opts the optional parameters
|
205
|
+
# @option opts [String] :page_token
|
206
|
+
# @option opts [Integer] :page_size
|
207
|
+
# @option opts [String] :namespace Namespace of the Relation Tuple
|
208
|
+
# @option opts [String] :object Object of the Relation Tuple
|
209
|
+
# @option opts [String] :relation Relation of the Relation Tuple
|
210
|
+
# @option opts [String] :subject_id SubjectID of the Relation Tuple
|
211
|
+
# @option opts [String] :subject_set_namespace Namespace of the Subject Set
|
212
|
+
# @option opts [String] :subject_set_object Object of the Subject Set
|
213
|
+
# @option opts [String] :subject_set_relation Relation of the Subject Set
|
214
|
+
# @return [Array<(GetRelationTuplesResponse, Integer, Hash)>] GetRelationTuplesResponse data, response status code and response headers
|
215
|
+
def get_relation_tuples_with_http_info(opts = {})
|
216
|
+
if @api_client.config.debugging
|
217
|
+
@api_client.config.logger.debug 'Calling API: ReadApi.get_relation_tuples ...'
|
218
|
+
end
|
219
|
+
# resource path
|
220
|
+
local_var_path = '/relation-tuples'
|
221
|
+
|
222
|
+
# query parameters
|
223
|
+
query_params = opts[:query_params] || {}
|
224
|
+
query_params[:'page_token'] = opts[:'page_token'] if !opts[:'page_token'].nil?
|
225
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
226
|
+
query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
|
227
|
+
query_params[:'object'] = opts[:'object'] if !opts[:'object'].nil?
|
228
|
+
query_params[:'relation'] = opts[:'relation'] if !opts[:'relation'].nil?
|
229
|
+
query_params[:'subject_id'] = opts[:'subject_id'] if !opts[:'subject_id'].nil?
|
230
|
+
query_params[:'subject_set.namespace'] = opts[:'subject_set_namespace'] if !opts[:'subject_set_namespace'].nil?
|
231
|
+
query_params[:'subject_set.object'] = opts[:'subject_set_object'] if !opts[:'subject_set_object'].nil?
|
232
|
+
query_params[:'subject_set.relation'] = opts[:'subject_set_relation'] if !opts[:'subject_set_relation'].nil?
|
233
|
+
|
234
|
+
# header parameters
|
235
|
+
header_params = opts[:header_params] || {}
|
236
|
+
# HTTP header 'Accept' (if needed)
|
237
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
238
|
+
|
239
|
+
# form parameters
|
240
|
+
form_params = opts[:form_params] || {}
|
241
|
+
|
242
|
+
# http body (model)
|
243
|
+
post_body = opts[:debug_body]
|
244
|
+
|
245
|
+
# return_type
|
246
|
+
return_type = opts[:debug_return_type] || 'GetRelationTuplesResponse'
|
247
|
+
|
248
|
+
# auth_names
|
249
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
250
|
+
|
251
|
+
new_options = opts.merge(
|
252
|
+
:operation => :"ReadApi.get_relation_tuples",
|
253
|
+
:header_params => header_params,
|
254
|
+
:query_params => query_params,
|
255
|
+
:form_params => form_params,
|
256
|
+
:body => post_body,
|
257
|
+
:auth_names => auth_names,
|
258
|
+
:return_type => return_type
|
259
|
+
)
|
260
|
+
|
261
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
262
|
+
if @api_client.config.debugging
|
263
|
+
@api_client.config.logger.debug "API called: ReadApi#get_relation_tuples\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
264
|
+
end
|
265
|
+
return data, status_code, headers
|
266
|
+
end
|
267
|
+
|
268
|
+
# Check a relation tuple
|
269
|
+
# To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
|
270
|
+
# @param [Hash] opts the optional parameters
|
271
|
+
# @option opts [Integer] :max_depth
|
272
|
+
# @option opts [RelationQuery] :relation_query
|
273
|
+
# @return [GetCheckResponse]
|
274
|
+
def post_check(opts = {})
|
275
|
+
data, _status_code, _headers = post_check_with_http_info(opts)
|
276
|
+
data
|
277
|
+
end
|
278
|
+
|
279
|
+
# Check a relation tuple
|
280
|
+
# To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
|
281
|
+
# @param [Hash] opts the optional parameters
|
282
|
+
# @option opts [Integer] :max_depth
|
283
|
+
# @option opts [RelationQuery] :relation_query
|
284
|
+
# @return [Array<(GetCheckResponse, Integer, Hash)>] GetCheckResponse data, response status code and response headers
|
285
|
+
def post_check_with_http_info(opts = {})
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug 'Calling API: ReadApi.post_check ...'
|
288
|
+
end
|
289
|
+
# resource path
|
290
|
+
local_var_path = '/relation-tuples/check'
|
291
|
+
|
292
|
+
# query parameters
|
293
|
+
query_params = opts[:query_params] || {}
|
294
|
+
query_params[:'max-depth'] = opts[:'max_depth'] if !opts[:'max_depth'].nil?
|
295
|
+
|
296
|
+
# header parameters
|
297
|
+
header_params = opts[:header_params] || {}
|
298
|
+
# HTTP header 'Accept' (if needed)
|
299
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
300
|
+
# HTTP header 'Content-Type'
|
301
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
302
|
+
if !content_type.nil?
|
303
|
+
header_params['Content-Type'] = content_type
|
304
|
+
end
|
305
|
+
|
306
|
+
# form parameters
|
307
|
+
form_params = opts[:form_params] || {}
|
308
|
+
|
309
|
+
# http body (model)
|
310
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'relation_query'])
|
311
|
+
|
312
|
+
# return_type
|
313
|
+
return_type = opts[:debug_return_type] || 'GetCheckResponse'
|
314
|
+
|
315
|
+
# auth_names
|
316
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
317
|
+
|
318
|
+
new_options = opts.merge(
|
319
|
+
:operation => :"ReadApi.post_check",
|
320
|
+
:header_params => header_params,
|
321
|
+
:query_params => query_params,
|
322
|
+
:form_params => form_params,
|
323
|
+
:body => post_body,
|
324
|
+
:auth_names => auth_names,
|
325
|
+
:return_type => return_type
|
326
|
+
)
|
327
|
+
|
328
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
329
|
+
if @api_client.config.debugging
|
330
|
+
@api_client.config.logger.debug "API called: ReadApi#post_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
331
|
+
end
|
332
|
+
return data, status_code, headers
|
333
|
+
end
|
334
|
+
end
|
335
|
+
end
|
@@ -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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.177
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -20,7 +20,7 @@ module OryClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Create an Identity
|
23
|
-
# This endpoint creates an identity.
|
23
|
+
# This endpoint creates an identity. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [AdminCreateIdentityBody] :admin_create_identity_body
|
26
26
|
# @return [Identity]
|
@@ -30,7 +30,7 @@ module OryClient
|
|
30
30
|
end
|
31
31
|
|
32
32
|
# Create an Identity
|
33
|
-
# This endpoint creates an identity.
|
33
|
+
# This endpoint creates an identity. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
|
34
34
|
# @param [Hash] opts the optional parameters
|
35
35
|
# @option opts [AdminCreateIdentityBody] :admin_create_identity_body
|
36
36
|
# @return [Array<(Identity, Integer, Hash)>] Identity data, response status code and response headers
|
@@ -562,7 +562,7 @@ module OryClient
|
|
562
562
|
end
|
563
563
|
|
564
564
|
# Update an Identity
|
565
|
-
# This endpoint updates an identity.
|
565
|
+
# 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).
|
566
566
|
# @param id [String] ID must be set to the ID of identity you want to update
|
567
567
|
# @param [Hash] opts the optional parameters
|
568
568
|
# @option opts [AdminUpdateIdentityBody] :admin_update_identity_body
|
@@ -573,7 +573,7 @@ module OryClient
|
|
573
573
|
end
|
574
574
|
|
575
575
|
# Update an Identity
|
576
|
-
# This endpoint updates an identity.
|
576
|
+
# 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).
|
577
577
|
# @param id [String] ID must be set to the ID of identity you want to update
|
578
578
|
# @param [Hash] opts the optional parameters
|
579
579
|
# @option opts [AdminUpdateIdentityBody] :admin_update_identity_body
|
@@ -2548,6 +2548,7 @@ module OryClient
|
|
2548
2548
|
# @param 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`).
|
2549
2549
|
# @param [Hash] opts the optional parameters
|
2550
2550
|
# @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
|
2551
|
+
# @option opts [String] :cookie CSRF Cookie The CSRF cookie for browsers flow.
|
2551
2552
|
# @option opts [SubmitSelfServiceLoginFlowBody] :submit_self_service_login_flow_body
|
2552
2553
|
# @return [SuccessfulSelfServiceLoginWithoutBrowser]
|
2553
2554
|
def submit_self_service_login_flow(flow, opts = {})
|
@@ -2560,6 +2561,7 @@ module OryClient
|
|
2560
2561
|
# @param 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`).
|
2561
2562
|
# @param [Hash] opts the optional parameters
|
2562
2563
|
# @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
|
2564
|
+
# @option opts [String] :cookie CSRF Cookie The CSRF cookie for browsers flow.
|
2563
2565
|
# @option opts [SubmitSelfServiceLoginFlowBody] :submit_self_service_login_flow_body
|
2564
2566
|
# @return [Array<(SuccessfulSelfServiceLoginWithoutBrowser, Integer, Hash)>] SuccessfulSelfServiceLoginWithoutBrowser data, response status code and response headers
|
2565
2567
|
def submit_self_service_login_flow_with_http_info(flow, opts = {})
|
@@ -2587,6 +2589,7 @@ module OryClient
|
|
2587
2589
|
header_params['Content-Type'] = content_type
|
2588
2590
|
end
|
2589
2591
|
header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
|
2592
|
+
header_params[:'cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
|
2590
2593
|
|
2591
2594
|
# form parameters
|
2592
2595
|
form_params = opts[:form_params] || {}
|