ory-client 1.12.2__py3-none-any.whl → 1.17.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ory_client/__init__.py +16 -3
- ory_client/api/courier_api.py +21 -15
- ory_client/api/events_api.py +38 -26
- ory_client/api/frontend_api.py +1741 -1064
- ory_client/api/identity_api.py +197 -126
- ory_client/api/jwk_api.py +65 -44
- ory_client/api/metadata_api.py +11 -8
- ory_client/api/o_auth2_api.py +292 -191
- ory_client/api/oidc_api.py +68 -45
- ory_client/api/permission_api.py +343 -32
- ory_client/api/project_api.py +516 -145
- ory_client/api/relationship_api.py +56 -38
- ory_client/api/wellknown_api.py +14 -11
- ory_client/api/workspace_api.py +886 -34
- ory_client/api_client.py +71 -32
- ory_client/configuration.py +176 -42
- ory_client/exceptions.py +19 -2
- ory_client/models/__init__.py +15 -2
- ory_client/models/accept_o_auth2_consent_request.py +2 -2
- ory_client/models/accept_o_auth2_consent_request_session.py +2 -2
- ory_client/models/accept_o_auth2_login_request.py +2 -2
- ory_client/models/account_experience_colors.py +329 -0
- ory_client/models/account_experience_configuration.py +35 -13
- ory_client/models/account_experience_theme_variables.py +2 -2
- ory_client/models/active_project_in_console.py +2 -2
- ory_client/models/add_project_to_workspace_body.py +2 -2
- ory_client/models/attribute.py +2 -2
- ory_client/models/attribute_filter.py +2 -2
- ory_client/models/attributes_count_datapoint.py +2 -2
- ory_client/models/authenticator_assurance_level.py +2 -2
- ory_client/models/batch_check_permission_body.py +109 -0
- ory_client/models/batch_check_permission_result.py +109 -0
- ory_client/models/batch_patch_identities_response.py +5 -5
- ory_client/models/billing_period_bucket.py +5 -5
- ory_client/models/check_opl_syntax_result.py +5 -5
- ory_client/models/check_permission_result.py +2 -2
- ory_client/models/check_permission_result_with_error.py +103 -0
- ory_client/models/cloud_account.py +6 -4
- ory_client/models/consistency_request_parameters.py +2 -2
- ory_client/models/continue_with.py +35 -11
- ory_client/models/continue_with_recovery_ui.py +2 -2
- ory_client/models/continue_with_recovery_ui_flow.py +3 -3
- ory_client/models/continue_with_redirect_browser_to.py +110 -0
- ory_client/models/continue_with_set_ory_session_token.py +2 -2
- ory_client/models/continue_with_settings_ui.py +2 -2
- ory_client/models/continue_with_settings_ui_flow.py +7 -5
- ory_client/models/continue_with_verification_ui.py +2 -2
- ory_client/models/continue_with_verification_ui_flow.py +3 -3
- ory_client/models/courier_message_status.py +2 -2
- ory_client/models/courier_message_type.py +2 -2
- ory_client/models/create_custom_domain_body.py +2 -2
- ory_client/models/create_event_stream_body.py +2 -2
- ory_client/models/create_fedcm_flow_response.py +111 -0
- ory_client/models/create_identity_body.py +16 -9
- ory_client/models/create_invite_response.py +5 -5
- ory_client/models/create_json_web_key_set.py +2 -2
- ory_client/models/create_project_api_key_request.py +7 -4
- ory_client/models/create_project_body.py +5 -5
- ory_client/models/create_project_branding.py +2 -2
- ory_client/models/create_project_member_invite_body.py +2 -2
- ory_client/models/create_project_normalized_payload.py +60 -24
- ory_client/models/create_recovery_code_for_identity_body.py +2 -2
- ory_client/models/create_recovery_link_for_identity_body.py +2 -2
- ory_client/models/create_relationship_body.py +2 -2
- ory_client/models/create_subscription_body.py +2 -2
- ory_client/models/create_subscription_common.py +2 -2
- ory_client/models/create_verifiable_credential_request_body.py +2 -2
- ory_client/models/create_workspace_api_key_body.py +104 -0
- ory_client/models/create_workspace_body.py +2 -2
- ory_client/models/create_workspace_member_invite_body.py +16 -7
- ory_client/models/create_workspace_subscription_body.py +2 -2
- ory_client/models/credential_supported_draft00.py +2 -2
- ory_client/models/custom_domain.py +2 -2
- ory_client/models/delete_my_sessions_count.py +2 -2
- ory_client/models/email_template_data.py +2 -2
- ory_client/models/email_template_data_body.py +2 -2
- ory_client/models/error_authenticator_assurance_level_not_satisfied.py +2 -2
- ory_client/models/error_browser_location_change_required.py +2 -2
- ory_client/models/error_flow_replaced.py +2 -2
- ory_client/models/error_generic.py +2 -2
- ory_client/models/error_o_auth2.py +2 -2
- ory_client/models/event_stream.py +2 -2
- ory_client/models/expanded_permission_tree.py +5 -5
- ory_client/models/flow_error.py +2 -2
- ory_client/models/generic_error.py +2 -2
- ory_client/models/generic_error_content.py +2 -2
- ory_client/models/generic_usage.py +2 -2
- ory_client/models/get_attributes_count_response.py +5 -5
- ory_client/models/get_managed_identity_schema_location.py +2 -2
- ory_client/models/get_metrics_event_attributes_response.py +2 -2
- ory_client/models/get_metrics_event_types_response.py +2 -2
- ory_client/models/get_organization_response.py +2 -2
- ory_client/models/get_project_events_body.py +5 -5
- ory_client/models/get_project_events_response.py +5 -5
- ory_client/models/get_project_metrics_response.py +5 -5
- ory_client/models/get_session_activity_response.py +5 -5
- ory_client/models/get_version200_response.py +2 -2
- ory_client/models/health_not_ready_status.py +2 -2
- ory_client/models/health_status.py +2 -2
- ory_client/models/identity.py +11 -11
- ory_client/models/identity_credentials.py +5 -5
- ory_client/models/identity_credentials_code.py +14 -14
- ory_client/models/identity_credentials_code_address.py +103 -0
- ory_client/models/identity_credentials_oidc.py +5 -5
- ory_client/models/identity_credentials_oidc_provider.py +7 -5
- ory_client/models/identity_credentials_password.py +7 -5
- ory_client/models/identity_patch.py +2 -2
- ory_client/models/identity_patch_response.py +13 -6
- ory_client/models/identity_schema_container.py +2 -2
- ory_client/models/identity_schema_preset.py +2 -2
- ory_client/models/identity_with_credentials.py +2 -2
- ory_client/models/identity_with_credentials_oidc.py +2 -2
- ory_client/models/identity_with_credentials_oidc_config.py +5 -5
- ory_client/models/identity_with_credentials_oidc_config_provider.py +8 -6
- ory_client/models/identity_with_credentials_password.py +2 -2
- ory_client/models/identity_with_credentials_password_config.py +7 -5
- ory_client/models/internal_get_project_branding_body.py +2 -2
- ory_client/models/internal_is_ax_welcome_screen_enabled_for_project_body.py +2 -2
- ory_client/models/internal_is_owner_for_project_by_slug_body.py +3 -3
- ory_client/models/internal_is_owner_for_project_by_slug_response.py +2 -2
- ory_client/models/introspected_o_auth2_token.py +2 -2
- ory_client/models/invite_token_body.py +101 -0
- ory_client/models/invoice.py +3 -3
- ory_client/models/invoice_data_v1.py +12 -8
- ory_client/models/is_owner_for_project_by_slug.py +3 -3
- ory_client/models/json_patch.py +2 -2
- ory_client/models/json_web_key.py +2 -2
- ory_client/models/json_web_key_set.py +5 -5
- ory_client/models/keto_namespace.py +2 -2
- ory_client/models/line_item_v1.py +5 -5
- ory_client/models/list_event_streams.py +5 -5
- ory_client/models/list_invoices_response.py +5 -5
- ory_client/models/list_organizations_response.py +5 -5
- ory_client/models/list_workspace_projects.py +5 -5
- ory_client/models/list_workspaces.py +5 -5
- ory_client/models/login_flow.py +5 -5
- ory_client/models/login_flow_state.py +3 -3
- ory_client/models/logout_flow.py +2 -2
- ory_client/models/managed_identity_schema.py +2 -2
- ory_client/models/managed_identity_schema_validation_result.py +2 -2
- ory_client/models/member_invite.py +10 -3
- ory_client/models/message.py +5 -5
- ory_client/models/message_dispatch.py +2 -2
- ory_client/models/metrics_datapoint.py +2 -2
- ory_client/models/money.py +2 -2
- ory_client/models/namespace.py +2 -2
- ory_client/models/needs_privileged_session_error.py +2 -2
- ory_client/models/normalized_project.py +5 -5
- ory_client/models/normalized_project_revision.py +57 -21
- ory_client/models/normalized_project_revision_courier_channel.py +2 -2
- ory_client/models/normalized_project_revision_hook.py +2 -2
- ory_client/models/normalized_project_revision_identity_schema.py +2 -2
- ory_client/models/normalized_project_revision_saml_provider.py +148 -0
- ory_client/models/normalized_project_revision_third_party_provider.py +34 -3
- ory_client/models/normalized_project_revision_tokenizer_template.py +2 -2
- ory_client/models/o_auth2_client.py +3 -3
- ory_client/models/o_auth2_client_token_lifespans.py +2 -2
- ory_client/models/o_auth2_consent_request.py +6 -4
- ory_client/models/o_auth2_consent_request_open_id_connect_context.py +2 -2
- ory_client/models/o_auth2_consent_session.py +5 -3
- ory_client/models/o_auth2_consent_session_expires_at.py +2 -2
- ory_client/models/o_auth2_login_request.py +3 -3
- ory_client/models/o_auth2_logout_request.py +9 -4
- ory_client/models/o_auth2_redirect_to.py +2 -2
- ory_client/models/o_auth2_token_exchange.py +2 -2
- ory_client/models/oidc_configuration.py +5 -5
- ory_client/models/oidc_user_info.py +2 -2
- ory_client/models/organization.py +2 -2
- ory_client/models/organization_body.py +2 -2
- ory_client/models/pagination.py +2 -2
- ory_client/models/pagination_headers.py +2 -2
- ory_client/models/parse_error.py +2 -2
- ory_client/models/patch_identities_body.py +5 -5
- ory_client/models/perform_native_logout_body.py +2 -2
- ory_client/models/permissions_on_workspace.py +2 -2
- ory_client/models/plan.py +2 -2
- ory_client/models/plan_details.py +5 -5
- ory_client/models/post_check_permission_body.py +2 -2
- ory_client/models/post_check_permission_or_error_body.py +2 -2
- ory_client/models/project.py +5 -5
- ory_client/models/project_api_key.py +5 -3
- ory_client/models/project_branding.py +5 -5
- ory_client/models/project_branding_colors.py +2 -2
- ory_client/models/project_branding_theme.py +5 -5
- ory_client/models/project_cors.py +2 -2
- ory_client/models/project_events_datapoint.py +5 -5
- ory_client/models/project_host.py +2 -2
- ory_client/models/project_member.py +6 -4
- ory_client/models/project_metadata.py +5 -5
- ory_client/models/project_service_identity.py +2 -2
- ory_client/models/project_service_o_auth2.py +2 -2
- ory_client/models/project_service_permission.py +2 -2
- ory_client/models/project_services.py +2 -2
- ory_client/models/provider.py +113 -0
- ory_client/models/quota_usage.py +8 -6
- ory_client/models/recovery_code_for_identity.py +2 -2
- ory_client/models/recovery_flow.py +5 -5
- ory_client/models/recovery_flow_state.py +3 -3
- ory_client/models/recovery_identity_address.py +2 -2
- ory_client/models/recovery_link_for_identity.py +2 -2
- ory_client/models/registration_flow.py +5 -5
- ory_client/models/registration_flow_state.py +3 -3
- ory_client/models/reject_o_auth2_request.py +2 -2
- ory_client/models/relation_query.py +2 -2
- ory_client/models/relationship.py +2 -2
- ory_client/models/relationship_namespaces.py +5 -5
- ory_client/models/relationship_patch.py +2 -2
- ory_client/models/relationships.py +5 -5
- ory_client/models/rfc6749_error_json.py +2 -2
- ory_client/models/schema_patch.py +2 -2
- ory_client/models/self_service_flow_expired_error.py +2 -2
- ory_client/models/session.py +8 -8
- ory_client/models/session_activity_datapoint.py +2 -2
- ory_client/models/session_authentication_method.py +2 -2
- ory_client/models/session_device.py +2 -2
- ory_client/models/set_active_project_in_console_body.py +2 -2
- ory_client/models/set_custom_domain_body.py +2 -2
- ory_client/models/set_event_stream_body.py +2 -2
- ory_client/models/set_project.py +2 -2
- ory_client/models/set_project_branding_theme_body.py +2 -2
- ory_client/models/settings_flow.py +5 -5
- ory_client/models/settings_flow_state.py +3 -3
- ory_client/models/source_position.py +2 -2
- ory_client/models/subject_set.py +2 -2
- ory_client/models/subscription.py +2 -2
- ory_client/models/successful_code_exchange_response.py +2 -2
- ory_client/models/successful_native_login.py +5 -5
- ory_client/models/successful_native_registration.py +5 -5
- ory_client/models/successful_project_update.py +5 -5
- ory_client/models/tax_line_item.py +2 -2
- ory_client/models/time_interval.py +2 -2
- ory_client/models/token_pagination.py +2 -2
- ory_client/models/token_pagination_headers.py +2 -2
- ory_client/models/token_pagination_request_parameters.py +2 -2
- ory_client/models/token_pagination_response_headers.py +2 -2
- ory_client/models/trust_o_auth2_jwt_grant_issuer.py +2 -2
- ory_client/models/trusted_o_auth2_jwt_grant_issuer.py +2 -2
- ory_client/models/trusted_o_auth2_jwt_grant_json_web_key.py +2 -2
- ory_client/models/ui_container.py +8 -8
- ory_client/models/ui_node.py +8 -8
- ory_client/models/ui_node_anchor_attributes.py +2 -2
- ory_client/models/ui_node_attributes.py +4 -4
- ory_client/models/ui_node_image_attributes.py +2 -2
- ory_client/models/ui_node_input_attributes.py +32 -6
- ory_client/models/ui_node_meta.py +2 -2
- ory_client/models/ui_node_script_attributes.py +2 -2
- ory_client/models/ui_node_text_attributes.py +2 -2
- ory_client/models/ui_text.py +2 -2
- ory_client/models/update_fedcm_flow_body.py +105 -0
- ory_client/models/update_identity_body.py +2 -2
- ory_client/models/update_login_flow_body.py +35 -11
- ory_client/models/update_login_flow_with_code_method.py +5 -3
- ory_client/models/update_login_flow_with_identifier_first_method.py +107 -0
- ory_client/models/update_login_flow_with_lookup_secret_method.py +2 -2
- ory_client/models/update_login_flow_with_oidc_method.py +3 -3
- ory_client/models/update_login_flow_with_passkey_method.py +2 -2
- ory_client/models/update_login_flow_with_password_method.py +2 -2
- ory_client/models/update_login_flow_with_totp_method.py +2 -2
- ory_client/models/update_login_flow_with_web_authn_method.py +2 -2
- ory_client/models/update_recovery_flow_body.py +4 -4
- ory_client/models/update_recovery_flow_with_code_method.py +2 -2
- ory_client/models/update_recovery_flow_with_link_method.py +2 -2
- ory_client/models/update_registration_flow_body.py +36 -12
- ory_client/models/update_registration_flow_with_code_method.py +2 -2
- ory_client/models/update_registration_flow_with_oidc_method.py +3 -3
- ory_client/models/update_registration_flow_with_passkey_method.py +2 -2
- ory_client/models/update_registration_flow_with_password_method.py +2 -2
- ory_client/models/update_registration_flow_with_profile_method.py +14 -4
- ory_client/models/update_registration_flow_with_web_authn_method.py +2 -2
- ory_client/models/update_settings_flow_body.py +4 -4
- ory_client/models/update_settings_flow_with_lookup_method.py +2 -2
- ory_client/models/update_settings_flow_with_oidc_method.py +2 -2
- ory_client/models/update_settings_flow_with_passkey_method.py +2 -2
- ory_client/models/update_settings_flow_with_password_method.py +2 -2
- ory_client/models/update_settings_flow_with_profile_method.py +2 -2
- ory_client/models/update_settings_flow_with_totp_method.py +2 -2
- ory_client/models/update_settings_flow_with_web_authn_method.py +2 -2
- ory_client/models/update_subscription_body.py +2 -2
- ory_client/models/update_verification_flow_body.py +4 -4
- ory_client/models/update_verification_flow_with_code_method.py +2 -2
- ory_client/models/update_verification_flow_with_link_method.py +2 -2
- ory_client/models/update_workspace_body.py +2 -2
- ory_client/models/usage.py +2 -2
- ory_client/models/verifiable_credential_priming_response.py +2 -2
- ory_client/models/verifiable_credential_proof.py +2 -2
- ory_client/models/verifiable_credential_response.py +2 -2
- ory_client/models/verifiable_identity_address.py +2 -2
- ory_client/models/verification_flow.py +2 -2
- ory_client/models/verification_flow_state.py +3 -3
- ory_client/models/version.py +2 -2
- ory_client/models/warning.py +2 -2
- ory_client/models/workspace.py +2 -2
- ory_client/models/workspace_api_key.py +6 -4
- ory_client/rest.py +5 -3
- ory_client-1.17.1.dist-info/METADATA +18 -0
- ory_client-1.17.1.dist-info/RECORD +302 -0
- {ory_client-1.12.2.dist-info → ory_client-1.17.1.dist-info}/WHEEL +1 -1
- ory_client-1.12.2.dist-info/METADATA +0 -19
- ory_client-1.12.2.dist-info/RECORD +0 -289
- {ory_client-1.12.2.dist-info → ory_client-1.17.1.dist-info}/LICENSE +0 -0
- {ory_client-1.12.2.dist-info → ory_client-1.17.1.dist-info}/top_level.txt +0 -0
ory_client/api/permission_api.py
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Ory APIs
|
5
5
|
|
6
|
-
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
6
|
+
# Introduction 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. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.
|
8
|
+
The version of the OpenAPI document: v1.17.1
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -20,6 +20,8 @@ from typing_extensions import Annotated
|
|
20
20
|
from pydantic import Field, StrictInt, StrictStr
|
21
21
|
from typing import Optional
|
22
22
|
from typing_extensions import Annotated
|
23
|
+
from ory_client.models.batch_check_permission_body import BatchCheckPermissionBody
|
24
|
+
from ory_client.models.batch_check_permission_result import BatchCheckPermissionResult
|
23
25
|
from ory_client.models.check_permission_result import CheckPermissionResult
|
24
26
|
from ory_client.models.expanded_permission_tree import ExpandedPermissionTree
|
25
27
|
from ory_client.models.post_check_permission_body import PostCheckPermissionBody
|
@@ -43,6 +45,300 @@ class PermissionApi:
|
|
43
45
|
self.api_client = api_client
|
44
46
|
|
45
47
|
|
48
|
+
@validate_call
|
49
|
+
def batch_check_permission(
|
50
|
+
self,
|
51
|
+
max_depth: Optional[StrictInt] = None,
|
52
|
+
batch_check_permission_body: Optional[BatchCheckPermissionBody] = None,
|
53
|
+
_request_timeout: Union[
|
54
|
+
None,
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
56
|
+
Tuple[
|
57
|
+
Annotated[StrictFloat, Field(gt=0)],
|
58
|
+
Annotated[StrictFloat, Field(gt=0)]
|
59
|
+
]
|
60
|
+
] = None,
|
61
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
62
|
+
_content_type: Optional[StrictStr] = None,
|
63
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
64
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
65
|
+
) -> BatchCheckPermissionResult:
|
66
|
+
"""Batch check permissions
|
67
|
+
|
68
|
+
To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
|
69
|
+
|
70
|
+
:param max_depth:
|
71
|
+
:type max_depth: int
|
72
|
+
:param batch_check_permission_body:
|
73
|
+
:type batch_check_permission_body: BatchCheckPermissionBody
|
74
|
+
:param _request_timeout: timeout setting for this request. If one
|
75
|
+
number provided, it will be total request
|
76
|
+
timeout. It can also be a pair (tuple) of
|
77
|
+
(connection, read) timeouts.
|
78
|
+
:type _request_timeout: int, tuple(int, int), optional
|
79
|
+
:param _request_auth: set to override the auth_settings for an a single
|
80
|
+
request; this effectively ignores the
|
81
|
+
authentication in the spec for a single request.
|
82
|
+
:type _request_auth: dict, optional
|
83
|
+
:param _content_type: force content-type for the request.
|
84
|
+
:type _content_type: str, Optional
|
85
|
+
:param _headers: set to override the headers for a single
|
86
|
+
request; this effectively ignores the headers
|
87
|
+
in the spec for a single request.
|
88
|
+
:type _headers: dict, optional
|
89
|
+
:param _host_index: set to override the host_index for a single
|
90
|
+
request; this effectively ignores the host_index
|
91
|
+
in the spec for a single request.
|
92
|
+
:type _host_index: int, optional
|
93
|
+
:return: Returns the result object.
|
94
|
+
""" # noqa: E501
|
95
|
+
|
96
|
+
_param = self._batch_check_permission_serialize(
|
97
|
+
max_depth=max_depth,
|
98
|
+
batch_check_permission_body=batch_check_permission_body,
|
99
|
+
_request_auth=_request_auth,
|
100
|
+
_content_type=_content_type,
|
101
|
+
_headers=_headers,
|
102
|
+
_host_index=_host_index
|
103
|
+
)
|
104
|
+
|
105
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
106
|
+
'200': "BatchCheckPermissionResult",
|
107
|
+
'400': "ErrorGeneric",
|
108
|
+
}
|
109
|
+
response_data = self.api_client.call_api(
|
110
|
+
*_param,
|
111
|
+
_request_timeout=_request_timeout
|
112
|
+
)
|
113
|
+
response_data.read()
|
114
|
+
return self.api_client.response_deserialize(
|
115
|
+
response_data=response_data,
|
116
|
+
response_types_map=_response_types_map,
|
117
|
+
).data
|
118
|
+
|
119
|
+
|
120
|
+
@validate_call
|
121
|
+
def batch_check_permission_with_http_info(
|
122
|
+
self,
|
123
|
+
max_depth: Optional[StrictInt] = None,
|
124
|
+
batch_check_permission_body: Optional[BatchCheckPermissionBody] = None,
|
125
|
+
_request_timeout: Union[
|
126
|
+
None,
|
127
|
+
Annotated[StrictFloat, Field(gt=0)],
|
128
|
+
Tuple[
|
129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
130
|
+
Annotated[StrictFloat, Field(gt=0)]
|
131
|
+
]
|
132
|
+
] = None,
|
133
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
134
|
+
_content_type: Optional[StrictStr] = None,
|
135
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
136
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
137
|
+
) -> ApiResponse[BatchCheckPermissionResult]:
|
138
|
+
"""Batch check permissions
|
139
|
+
|
140
|
+
To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
|
141
|
+
|
142
|
+
:param max_depth:
|
143
|
+
:type max_depth: int
|
144
|
+
:param batch_check_permission_body:
|
145
|
+
:type batch_check_permission_body: BatchCheckPermissionBody
|
146
|
+
:param _request_timeout: timeout setting for this request. If one
|
147
|
+
number provided, it will be total request
|
148
|
+
timeout. It can also be a pair (tuple) of
|
149
|
+
(connection, read) timeouts.
|
150
|
+
:type _request_timeout: int, tuple(int, int), optional
|
151
|
+
:param _request_auth: set to override the auth_settings for an a single
|
152
|
+
request; this effectively ignores the
|
153
|
+
authentication in the spec for a single request.
|
154
|
+
:type _request_auth: dict, optional
|
155
|
+
:param _content_type: force content-type for the request.
|
156
|
+
:type _content_type: str, Optional
|
157
|
+
:param _headers: set to override the headers for a single
|
158
|
+
request; this effectively ignores the headers
|
159
|
+
in the spec for a single request.
|
160
|
+
:type _headers: dict, optional
|
161
|
+
:param _host_index: set to override the host_index for a single
|
162
|
+
request; this effectively ignores the host_index
|
163
|
+
in the spec for a single request.
|
164
|
+
:type _host_index: int, optional
|
165
|
+
:return: Returns the result object.
|
166
|
+
""" # noqa: E501
|
167
|
+
|
168
|
+
_param = self._batch_check_permission_serialize(
|
169
|
+
max_depth=max_depth,
|
170
|
+
batch_check_permission_body=batch_check_permission_body,
|
171
|
+
_request_auth=_request_auth,
|
172
|
+
_content_type=_content_type,
|
173
|
+
_headers=_headers,
|
174
|
+
_host_index=_host_index
|
175
|
+
)
|
176
|
+
|
177
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
178
|
+
'200': "BatchCheckPermissionResult",
|
179
|
+
'400': "ErrorGeneric",
|
180
|
+
}
|
181
|
+
response_data = self.api_client.call_api(
|
182
|
+
*_param,
|
183
|
+
_request_timeout=_request_timeout
|
184
|
+
)
|
185
|
+
response_data.read()
|
186
|
+
return self.api_client.response_deserialize(
|
187
|
+
response_data=response_data,
|
188
|
+
response_types_map=_response_types_map,
|
189
|
+
)
|
190
|
+
|
191
|
+
|
192
|
+
@validate_call
|
193
|
+
def batch_check_permission_without_preload_content(
|
194
|
+
self,
|
195
|
+
max_depth: Optional[StrictInt] = None,
|
196
|
+
batch_check_permission_body: Optional[BatchCheckPermissionBody] = None,
|
197
|
+
_request_timeout: Union[
|
198
|
+
None,
|
199
|
+
Annotated[StrictFloat, Field(gt=0)],
|
200
|
+
Tuple[
|
201
|
+
Annotated[StrictFloat, Field(gt=0)],
|
202
|
+
Annotated[StrictFloat, Field(gt=0)]
|
203
|
+
]
|
204
|
+
] = None,
|
205
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
206
|
+
_content_type: Optional[StrictStr] = None,
|
207
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
208
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
209
|
+
) -> RESTResponseType:
|
210
|
+
"""Batch check permissions
|
211
|
+
|
212
|
+
To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
|
213
|
+
|
214
|
+
:param max_depth:
|
215
|
+
:type max_depth: int
|
216
|
+
:param batch_check_permission_body:
|
217
|
+
:type batch_check_permission_body: BatchCheckPermissionBody
|
218
|
+
:param _request_timeout: timeout setting for this request. If one
|
219
|
+
number provided, it will be total request
|
220
|
+
timeout. It can also be a pair (tuple) of
|
221
|
+
(connection, read) timeouts.
|
222
|
+
:type _request_timeout: int, tuple(int, int), optional
|
223
|
+
:param _request_auth: set to override the auth_settings for an a single
|
224
|
+
request; this effectively ignores the
|
225
|
+
authentication in the spec for a single request.
|
226
|
+
:type _request_auth: dict, optional
|
227
|
+
:param _content_type: force content-type for the request.
|
228
|
+
:type _content_type: str, Optional
|
229
|
+
:param _headers: set to override the headers for a single
|
230
|
+
request; this effectively ignores the headers
|
231
|
+
in the spec for a single request.
|
232
|
+
:type _headers: dict, optional
|
233
|
+
:param _host_index: set to override the host_index for a single
|
234
|
+
request; this effectively ignores the host_index
|
235
|
+
in the spec for a single request.
|
236
|
+
:type _host_index: int, optional
|
237
|
+
:return: Returns the result object.
|
238
|
+
""" # noqa: E501
|
239
|
+
|
240
|
+
_param = self._batch_check_permission_serialize(
|
241
|
+
max_depth=max_depth,
|
242
|
+
batch_check_permission_body=batch_check_permission_body,
|
243
|
+
_request_auth=_request_auth,
|
244
|
+
_content_type=_content_type,
|
245
|
+
_headers=_headers,
|
246
|
+
_host_index=_host_index
|
247
|
+
)
|
248
|
+
|
249
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
250
|
+
'200': "BatchCheckPermissionResult",
|
251
|
+
'400': "ErrorGeneric",
|
252
|
+
}
|
253
|
+
response_data = self.api_client.call_api(
|
254
|
+
*_param,
|
255
|
+
_request_timeout=_request_timeout
|
256
|
+
)
|
257
|
+
return response_data.response
|
258
|
+
|
259
|
+
|
260
|
+
def _batch_check_permission_serialize(
|
261
|
+
self,
|
262
|
+
max_depth,
|
263
|
+
batch_check_permission_body,
|
264
|
+
_request_auth,
|
265
|
+
_content_type,
|
266
|
+
_headers,
|
267
|
+
_host_index,
|
268
|
+
) -> RequestSerialized:
|
269
|
+
|
270
|
+
_host = None
|
271
|
+
|
272
|
+
_collection_formats: Dict[str, str] = {
|
273
|
+
}
|
274
|
+
|
275
|
+
_path_params: Dict[str, str] = {}
|
276
|
+
_query_params: List[Tuple[str, str]] = []
|
277
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
278
|
+
_form_params: List[Tuple[str, str]] = []
|
279
|
+
_files: Dict[
|
280
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
281
|
+
] = {}
|
282
|
+
_body_params: Optional[bytes] = None
|
283
|
+
|
284
|
+
# process the path parameters
|
285
|
+
# process the query parameters
|
286
|
+
if max_depth is not None:
|
287
|
+
|
288
|
+
_query_params.append(('max-depth', max_depth))
|
289
|
+
|
290
|
+
# process the header parameters
|
291
|
+
# process the form parameters
|
292
|
+
# process the body parameter
|
293
|
+
if batch_check_permission_body is not None:
|
294
|
+
_body_params = batch_check_permission_body
|
295
|
+
|
296
|
+
|
297
|
+
# set the HTTP header `Accept`
|
298
|
+
if 'Accept' not in _header_params:
|
299
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
300
|
+
[
|
301
|
+
'application/json'
|
302
|
+
]
|
303
|
+
)
|
304
|
+
|
305
|
+
# set the HTTP header `Content-Type`
|
306
|
+
if _content_type:
|
307
|
+
_header_params['Content-Type'] = _content_type
|
308
|
+
else:
|
309
|
+
_default_content_type = (
|
310
|
+
self.api_client.select_header_content_type(
|
311
|
+
[
|
312
|
+
'application/json'
|
313
|
+
]
|
314
|
+
)
|
315
|
+
)
|
316
|
+
if _default_content_type is not None:
|
317
|
+
_header_params['Content-Type'] = _default_content_type
|
318
|
+
|
319
|
+
# authentication setting
|
320
|
+
_auth_settings: List[str] = [
|
321
|
+
'oryAccessToken'
|
322
|
+
]
|
323
|
+
|
324
|
+
return self.api_client.param_serialize(
|
325
|
+
method='POST',
|
326
|
+
resource_path='/relation-tuples/batch/check',
|
327
|
+
path_params=_path_params,
|
328
|
+
query_params=_query_params,
|
329
|
+
header_params=_header_params,
|
330
|
+
body=_body_params,
|
331
|
+
post_params=_form_params,
|
332
|
+
files=_files,
|
333
|
+
auth_settings=_auth_settings,
|
334
|
+
collection_formats=_collection_formats,
|
335
|
+
_host=_host,
|
336
|
+
_request_auth=_request_auth
|
337
|
+
)
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
46
342
|
@validate_call
|
47
343
|
def check_permission(
|
48
344
|
self,
|
@@ -352,7 +648,9 @@ class PermissionApi:
|
|
352
648
|
_query_params: List[Tuple[str, str]] = []
|
353
649
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
354
650
|
_form_params: List[Tuple[str, str]] = []
|
355
|
-
_files: Dict[
|
651
|
+
_files: Dict[
|
652
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
653
|
+
] = {}
|
356
654
|
_body_params: Optional[bytes] = None
|
357
655
|
|
358
656
|
# process the path parameters
|
@@ -395,11 +693,12 @@ class PermissionApi:
|
|
395
693
|
|
396
694
|
|
397
695
|
# set the HTTP header `Accept`
|
398
|
-
|
399
|
-
[
|
400
|
-
|
401
|
-
|
402
|
-
|
696
|
+
if 'Accept' not in _header_params:
|
697
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
698
|
+
[
|
699
|
+
'application/json'
|
700
|
+
]
|
701
|
+
)
|
403
702
|
|
404
703
|
|
405
704
|
# authentication setting
|
@@ -737,7 +1036,9 @@ class PermissionApi:
|
|
737
1036
|
_query_params: List[Tuple[str, str]] = []
|
738
1037
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
739
1038
|
_form_params: List[Tuple[str, str]] = []
|
740
|
-
_files: Dict[
|
1039
|
+
_files: Dict[
|
1040
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1041
|
+
] = {}
|
741
1042
|
_body_params: Optional[bytes] = None
|
742
1043
|
|
743
1044
|
# process the path parameters
|
@@ -780,11 +1081,12 @@ class PermissionApi:
|
|
780
1081
|
|
781
1082
|
|
782
1083
|
# set the HTTP header `Accept`
|
783
|
-
|
784
|
-
[
|
785
|
-
|
786
|
-
|
787
|
-
|
1084
|
+
if 'Accept' not in _header_params:
|
1085
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1086
|
+
[
|
1087
|
+
'application/json'
|
1088
|
+
]
|
1089
|
+
)
|
788
1090
|
|
789
1091
|
|
790
1092
|
# authentication setting
|
@@ -1070,7 +1372,9 @@ class PermissionApi:
|
|
1070
1372
|
_query_params: List[Tuple[str, str]] = []
|
1071
1373
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1072
1374
|
_form_params: List[Tuple[str, str]] = []
|
1073
|
-
_files: Dict[
|
1375
|
+
_files: Dict[
|
1376
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1377
|
+
] = {}
|
1074
1378
|
_body_params: Optional[bytes] = None
|
1075
1379
|
|
1076
1380
|
# process the path parameters
|
@@ -1097,11 +1401,12 @@ class PermissionApi:
|
|
1097
1401
|
|
1098
1402
|
|
1099
1403
|
# set the HTTP header `Accept`
|
1100
|
-
|
1101
|
-
[
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1404
|
+
if 'Accept' not in _header_params:
|
1405
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1406
|
+
[
|
1407
|
+
'application/json'
|
1408
|
+
]
|
1409
|
+
)
|
1105
1410
|
|
1106
1411
|
|
1107
1412
|
# authentication setting
|
@@ -1358,7 +1663,9 @@ class PermissionApi:
|
|
1358
1663
|
_query_params: List[Tuple[str, str]] = []
|
1359
1664
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1360
1665
|
_form_params: List[Tuple[str, str]] = []
|
1361
|
-
_files: Dict[
|
1666
|
+
_files: Dict[
|
1667
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1668
|
+
] = {}
|
1362
1669
|
_body_params: Optional[bytes] = None
|
1363
1670
|
|
1364
1671
|
# process the path parameters
|
@@ -1375,11 +1682,12 @@ class PermissionApi:
|
|
1375
1682
|
|
1376
1683
|
|
1377
1684
|
# set the HTTP header `Accept`
|
1378
|
-
|
1379
|
-
[
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1685
|
+
if 'Accept' not in _header_params:
|
1686
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1687
|
+
[
|
1688
|
+
'application/json'
|
1689
|
+
]
|
1690
|
+
)
|
1383
1691
|
|
1384
1692
|
# set the HTTP header `Content-Type`
|
1385
1693
|
if _content_type:
|
@@ -1652,7 +1960,9 @@ class PermissionApi:
|
|
1652
1960
|
_query_params: List[Tuple[str, str]] = []
|
1653
1961
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1654
1962
|
_form_params: List[Tuple[str, str]] = []
|
1655
|
-
_files: Dict[
|
1963
|
+
_files: Dict[
|
1964
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1965
|
+
] = {}
|
1656
1966
|
_body_params: Optional[bytes] = None
|
1657
1967
|
|
1658
1968
|
# process the path parameters
|
@@ -1669,11 +1979,12 @@ class PermissionApi:
|
|
1669
1979
|
|
1670
1980
|
|
1671
1981
|
# set the HTTP header `Accept`
|
1672
|
-
|
1673
|
-
[
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1982
|
+
if 'Accept' not in _header_params:
|
1983
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1984
|
+
[
|
1985
|
+
'application/json'
|
1986
|
+
]
|
1987
|
+
)
|
1677
1988
|
|
1678
1989
|
# set the HTTP header `Content-Type`
|
1679
1990
|
if _content_type:
|