permify 0.0.1__tar.gz
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.
- permify-0.0.1/LICENCE +201 -0
- permify-0.0.1/PKG-INFO +18 -0
- permify-0.0.1/README.md +264 -0
- permify-0.0.1/permify/__init__.py +166 -0
- permify-0.0.1/permify/api/__init__.py +10 -0
- permify-0.0.1/permify/api/bundle_api.py +893 -0
- permify-0.0.1/permify/api/data_api.py +2033 -0
- permify-0.0.1/permify/api/permission_api.py +1748 -0
- permify-0.0.1/permify/api/schema_api.py +1178 -0
- permify-0.0.1/permify/api/tenancy_api.py +834 -0
- permify-0.0.1/permify/api/watch_api.py +323 -0
- permify-0.0.1/permify/api_client.py +782 -0
- permify-0.0.1/permify/api_response.py +21 -0
- permify-0.0.1/permify/configuration.py +480 -0
- permify-0.0.1/permify/exceptions.py +200 -0
- permify-0.0.1/permify/models/__init__.py +144 -0
- permify-0.0.1/permify/models/abstract_type.py +100 -0
- permify-0.0.1/permify/models/any.py +101 -0
- permify-0.0.1/permify/models/argument.py +98 -0
- permify-0.0.1/permify/models/attribute.py +100 -0
- permify-0.0.1/permify/models/attribute_definition.py +91 -0
- permify-0.0.1/permify/models/attribute_filter.py +94 -0
- permify-0.0.1/permify/models/attribute_read_request_metadata.py +88 -0
- permify-0.0.1/permify/models/attribute_read_response.py +98 -0
- permify-0.0.1/permify/models/attribute_type.py +44 -0
- permify-0.0.1/permify/models/bundle_delete_body.py +88 -0
- permify-0.0.1/permify/models/bundle_delete_response.py +88 -0
- permify-0.0.1/permify/models/bundle_read_body.py +88 -0
- permify-0.0.1/permify/models/bundle_read_response.py +92 -0
- permify-0.0.1/permify/models/bundle_run_response.py +88 -0
- permify-0.0.1/permify/models/bundle_write_body.py +96 -0
- permify-0.0.1/permify/models/bundle_write_response.py +88 -0
- permify-0.0.1/permify/models/check_body.py +122 -0
- permify-0.0.1/permify/models/check_result.py +38 -0
- permify-0.0.1/permify/models/checked_expr.py +130 -0
- permify-0.0.1/permify/models/child.py +100 -0
- permify-0.0.1/permify/models/comprehension.py +118 -0
- permify-0.0.1/permify/models/computed_attribute.py +88 -0
- permify-0.0.1/permify/models/computed_user_set.py +88 -0
- permify-0.0.1/permify/models/constant.py +116 -0
- permify-0.0.1/permify/models/context.py +108 -0
- permify-0.0.1/permify/models/context_attribute.py +88 -0
- permify-0.0.1/permify/models/create_list.py +100 -0
- permify-0.0.1/permify/models/create_struct.py +100 -0
- permify-0.0.1/permify/models/data_bundle.py +100 -0
- permify-0.0.1/permify/models/data_change.py +101 -0
- permify-0.0.1/permify/models/data_change_operation.py +38 -0
- permify-0.0.1/permify/models/data_changes.py +98 -0
- permify-0.0.1/permify/models/data_delete_body.py +98 -0
- permify-0.0.1/permify/models/data_delete_response.py +88 -0
- permify-0.0.1/permify/models/data_write_body.py +112 -0
- permify-0.0.1/permify/models/data_write_request_metadata.py +88 -0
- permify-0.0.1/permify/models/data_write_response.py +88 -0
- permify-0.0.1/permify/models/delete_relationships_body.py +92 -0
- permify-0.0.1/permify/models/entity.py +90 -0
- permify-0.0.1/permify/models/entity_definition.py +136 -0
- permify-0.0.1/permify/models/entity_definition_reference.py +39 -0
- permify-0.0.1/permify/models/entity_filter.py +90 -0
- permify-0.0.1/permify/models/entry.py +105 -0
- permify-0.0.1/permify/models/expand_leaf.py +104 -0
- permify-0.0.1/permify/models/expand_tree_node.py +101 -0
- permify-0.0.1/permify/models/expand_tree_node_operation.py +39 -0
- permify-0.0.1/permify/models/expr.py +132 -0
- permify-0.0.1/permify/models/expr_call.py +105 -0
- permify-0.0.1/permify/models/function_type.py +103 -0
- permify-0.0.1/permify/models/ident.py +88 -0
- permify-0.0.1/permify/models/leaf.py +110 -0
- permify-0.0.1/permify/models/list_type.py +94 -0
- permify-0.0.1/permify/models/lookup_entity_body.py +108 -0
- permify-0.0.1/permify/models/lookup_entity_stream_body.py +108 -0
- permify-0.0.1/permify/models/lookup_subject_body.py +112 -0
- permify-0.0.1/permify/models/map_type.py +99 -0
- permify-0.0.1/permify/models/partial_write_body.py +107 -0
- permify-0.0.1/permify/models/partials.py +92 -0
- permify-0.0.1/permify/models/permission_check_request_metadata.py +92 -0
- permify-0.0.1/permify/models/permission_check_response.py +95 -0
- permify-0.0.1/permify/models/permission_check_response_metadata.py +88 -0
- permify-0.0.1/permify/models/permission_definition.py +94 -0
- permify-0.0.1/permify/models/permission_expand_body.py +116 -0
- permify-0.0.1/permify/models/permission_expand_request_metadata.py +90 -0
- permify-0.0.1/permify/models/permission_expand_response.py +92 -0
- permify-0.0.1/permify/models/permission_lookup_entity_request_metadata.py +92 -0
- permify-0.0.1/permify/models/permission_lookup_entity_response.py +88 -0
- permify-0.0.1/permify/models/permission_lookup_entity_stream_response.py +88 -0
- permify-0.0.1/permify/models/permission_lookup_subject_request_metadata.py +92 -0
- permify-0.0.1/permify/models/permission_lookup_subject_response.py +88 -0
- permify-0.0.1/permify/models/permission_subject_permission_request_metadata.py +94 -0
- permify-0.0.1/permify/models/permission_subject_permission_response.py +89 -0
- permify-0.0.1/permify/models/primitive_type.py +42 -0
- permify-0.0.1/permify/models/read_attributes_body.py +102 -0
- permify-0.0.1/permify/models/read_relationships_body.py +102 -0
- permify-0.0.1/permify/models/relation_definition.py +98 -0
- permify-0.0.1/permify/models/relation_reference.py +90 -0
- permify-0.0.1/permify/models/relationship_delete_response.py +88 -0
- permify-0.0.1/permify/models/relationship_read_request_metadata.py +88 -0
- permify-0.0.1/permify/models/relationship_read_response.py +98 -0
- permify-0.0.1/permify/models/relationship_write_request_metadata.py +88 -0
- permify-0.0.1/permify/models/relationship_write_response.py +88 -0
- permify-0.0.1/permify/models/rewrite.py +101 -0
- permify-0.0.1/permify/models/rewrite_operation.py +39 -0
- permify-0.0.1/permify/models/rule_definition.py +97 -0
- permify-0.0.1/permify/models/run_bundle_body.py +90 -0
- permify-0.0.1/permify/models/schema_definition.py +119 -0
- permify-0.0.1/permify/models/schema_definition_reference.py +38 -0
- permify-0.0.1/permify/models/schema_list.py +90 -0
- permify-0.0.1/permify/models/schema_list_body.py +90 -0
- permify-0.0.1/permify/models/schema_list_response.py +100 -0
- permify-0.0.1/permify/models/schema_partial_write_request_metadata.py +88 -0
- permify-0.0.1/permify/models/schema_partial_write_response.py +88 -0
- permify-0.0.1/permify/models/schema_read_body.py +92 -0
- permify-0.0.1/permify/models/schema_read_request_metadata.py +88 -0
- permify-0.0.1/permify/models/schema_read_response.py +92 -0
- permify-0.0.1/permify/models/schema_write_body.py +88 -0
- permify-0.0.1/permify/models/schema_write_response.py +88 -0
- permify-0.0.1/permify/models/select.py +98 -0
- permify-0.0.1/permify/models/source_info.py +109 -0
- permify-0.0.1/permify/models/status.py +100 -0
- permify-0.0.1/permify/models/stream_result_of_permission_lookup_entity_stream_response.py +98 -0
- permify-0.0.1/permify/models/stream_result_of_watch_response.py +98 -0
- permify-0.0.1/permify/models/subject.py +92 -0
- permify-0.0.1/permify/models/subject_filter.py +92 -0
- permify-0.0.1/permify/models/subject_permission_body.py +110 -0
- permify-0.0.1/permify/models/subjects.py +96 -0
- permify-0.0.1/permify/models/tenant.py +93 -0
- permify-0.0.1/permify/models/tenant_create_request.py +90 -0
- permify-0.0.1/permify/models/tenant_create_response.py +92 -0
- permify-0.0.1/permify/models/tenant_delete_response.py +92 -0
- permify-0.0.1/permify/models/tenant_list_request.py +90 -0
- permify-0.0.1/permify/models/tenant_list_response.py +98 -0
- permify-0.0.1/permify/models/tuple.py +100 -0
- permify-0.0.1/permify/models/tuple_filter.py +100 -0
- permify-0.0.1/permify/models/tuple_set.py +88 -0
- permify-0.0.1/permify/models/tuple_to_user_set.py +98 -0
- permify-0.0.1/permify/models/v1_call.py +98 -0
- permify-0.0.1/permify/models/v1_expand.py +118 -0
- permify-0.0.1/permify/models/v1_operation.py +94 -0
- permify-0.0.1/permify/models/v1alpha1_reference.py +96 -0
- permify-0.0.1/permify/models/v1alpha1_type.py +135 -0
- permify-0.0.1/permify/models/values.py +101 -0
- permify-0.0.1/permify/models/watch_body.py +88 -0
- permify-0.0.1/permify/models/watch_response.py +92 -0
- permify-0.0.1/permify/models/well_known_type.py +39 -0
- permify-0.0.1/permify/models/write_relationships_body.py +102 -0
- permify-0.0.1/permify/py.typed +0 -0
- permify-0.0.1/permify/rest.py +258 -0
- permify-0.0.1/permify.egg-info/PKG-INFO +18 -0
- permify-0.0.1/permify.egg-info/SOURCES.txt +285 -0
- permify-0.0.1/permify.egg-info/dependency_links.txt +1 -0
- permify-0.0.1/permify.egg-info/requires.txt +4 -0
- permify-0.0.1/permify.egg-info/top_level.txt +1 -0
- permify-0.0.1/pyproject.toml +71 -0
- permify-0.0.1/setup.cfg +7 -0
- permify-0.0.1/setup.py +51 -0
- permify-0.0.1/test/test_abstract_type.py +89 -0
- permify-0.0.1/test/test_any.py +52 -0
- permify-0.0.1/test/test_argument.py +55 -0
- permify-0.0.1/test/test_attribute.py +58 -0
- permify-0.0.1/test/test_attribute_definition.py +53 -0
- permify-0.0.1/test/test_attribute_filter.py +59 -0
- permify-0.0.1/test/test_attribute_read_request_metadata.py +52 -0
- permify-0.0.1/test/test_attribute_read_response.py +62 -0
- permify-0.0.1/test/test_attribute_type.py +34 -0
- permify-0.0.1/test/test_bundle_api.py +53 -0
- permify-0.0.1/test/test_bundle_delete_body.py +52 -0
- permify-0.0.1/test/test_bundle_delete_response.py +52 -0
- permify-0.0.1/test/test_bundle_read_body.py +52 -0
- permify-0.0.1/test/test_bundle_read_response.py +71 -0
- permify-0.0.1/test/test_bundle_run_response.py +52 -0
- permify-0.0.1/test/test_bundle_write_body.py +73 -0
- permify-0.0.1/test/test_bundle_write_response.py +54 -0
- permify-0.0.1/test/test_check_body.py +90 -0
- permify-0.0.1/test/test_check_result.py +34 -0
- permify-0.0.1/test/test_checked_expr.py +233 -0
- permify-0.0.1/test/test_child.py +91 -0
- permify-0.0.1/test/test_comprehension.py +338 -0
- permify-0.0.1/test/test_computed_attribute.py +52 -0
- permify-0.0.1/test/test_computed_user_set.py +52 -0
- permify-0.0.1/test/test_constant.py +60 -0
- permify-0.0.1/test/test_context.py +73 -0
- permify-0.0.1/test/test_context_attribute.py +52 -0
- permify-0.0.1/test/test_create_list.py +111 -0
- permify-0.0.1/test/test_create_struct.py +109 -0
- permify-0.0.1/test/test_data_api.py +81 -0
- permify-0.0.1/test/test_data_bundle.py +70 -0
- permify-0.0.1/test/test_data_change.py +69 -0
- permify-0.0.1/test/test_data_change_operation.py +34 -0
- permify-0.0.1/test/test_data_changes.py +69 -0
- permify-0.0.1/test/test_data_delete_body.py +73 -0
- permify-0.0.1/test/test_data_delete_response.py +52 -0
- permify-0.0.1/test/test_data_write_body.py +74 -0
- permify-0.0.1/test/test_data_write_request_metadata.py +52 -0
- permify-0.0.1/test/test_data_write_response.py +52 -0
- permify-0.0.1/test/test_delete_relationships_body.py +64 -0
- permify-0.0.1/test/test_entity.py +53 -0
- permify-0.0.1/test/test_entity_definition.py +96 -0
- permify-0.0.1/test/test_entity_definition_reference.py +34 -0
- permify-0.0.1/test/test_entity_filter.py +55 -0
- permify-0.0.1/test/test_entry.py +168 -0
- permify-0.0.1/test/test_expand_leaf.py +67 -0
- permify-0.0.1/test/test_expand_tree_node.py +79 -0
- permify-0.0.1/test/test_expand_tree_node_operation.py +34 -0
- permify-0.0.1/test/test_expr.py +339 -0
- permify-0.0.1/test/test_expr_call.py +166 -0
- permify-0.0.1/test/test_function_type.py +119 -0
- permify-0.0.1/test/test_ident.py +52 -0
- permify-0.0.1/test/test_leaf.py +69 -0
- permify-0.0.1/test/test_list_type.py +84 -0
- permify-0.0.1/test/test_lookup_entity_body.py +81 -0
- permify-0.0.1/test/test_lookup_entity_stream_body.py +81 -0
- permify-0.0.1/test/test_lookup_subject_body.py +82 -0
- permify-0.0.1/test/test_map_type.py +119 -0
- permify-0.0.1/test/test_partial_write_body.py +65 -0
- permify-0.0.1/test/test_partials.py +60 -0
- permify-0.0.1/test/test_permission_api.py +74 -0
- permify-0.0.1/test/test_permission_check_request_metadata.py +54 -0
- permify-0.0.1/test/test_permission_check_response.py +54 -0
- permify-0.0.1/test/test_permission_check_response_metadata.py +52 -0
- permify-0.0.1/test/test_permission_definition.py +75 -0
- permify-0.0.1/test/test_permission_expand_body.py +85 -0
- permify-0.0.1/test/test_permission_expand_request_metadata.py +53 -0
- permify-0.0.1/test/test_permission_expand_response.py +76 -0
- permify-0.0.1/test/test_permission_lookup_entity_request_metadata.py +54 -0
- permify-0.0.1/test/test_permission_lookup_entity_response.py +54 -0
- permify-0.0.1/test/test_permission_lookup_entity_stream_response.py +52 -0
- permify-0.0.1/test/test_permission_lookup_subject_request_metadata.py +54 -0
- permify-0.0.1/test/test_permission_lookup_subject_response.py +54 -0
- permify-0.0.1/test/test_permission_subject_permission_request_metadata.py +55 -0
- permify-0.0.1/test/test_permission_subject_permission_response.py +54 -0
- permify-0.0.1/test/test_primitive_type.py +34 -0
- permify-0.0.1/test/test_read_attributes_body.py +64 -0
- permify-0.0.1/test/test_read_relationships_body.py +68 -0
- permify-0.0.1/test/test_relation_definition.py +57 -0
- permify-0.0.1/test/test_relation_reference.py +53 -0
- permify-0.0.1/test/test_relationship_delete_response.py +52 -0
- permify-0.0.1/test/test_relationship_read_request_metadata.py +52 -0
- permify-0.0.1/test/test_relationship_read_response.py +63 -0
- permify-0.0.1/test/test_relationship_write_request_metadata.py +52 -0
- permify-0.0.1/test/test_relationship_write_response.py +52 -0
- permify-0.0.1/test/test_rewrite.py +74 -0
- permify-0.0.1/test/test_rewrite_operation.py +34 -0
- permify-0.0.1/test/test_rule_definition.py +178 -0
- permify-0.0.1/test/test_run_bundle_body.py +55 -0
- permify-0.0.1/test/test_schema_api.py +60 -0
- permify-0.0.1/test/test_schema_definition.py +232 -0
- permify-0.0.1/test/test_schema_definition_reference.py +34 -0
- permify-0.0.1/test/test_schema_list.py +53 -0
- permify-0.0.1/test/test_schema_list_body.py +53 -0
- permify-0.0.1/test/test_schema_list_response.py +58 -0
- permify-0.0.1/test/test_schema_partial_write_request_metadata.py +52 -0
- permify-0.0.1/test/test_schema_partial_write_response.py +52 -0
- permify-0.0.1/test/test_schema_read_body.py +53 -0
- permify-0.0.1/test/test_schema_read_request_metadata.py +52 -0
- permify-0.0.1/test/test_schema_read_response.py +231 -0
- permify-0.0.1/test/test_schema_write_body.py +52 -0
- permify-0.0.1/test/test_schema_write_response.py +52 -0
- permify-0.0.1/test/test_select.py +108 -0
- permify-0.0.1/test/test_source_info.py +119 -0
- permify-0.0.1/test/test_status.py +58 -0
- permify-0.0.1/test/test_stream_result_of_permission_lookup_entity_stream_response.py +61 -0
- permify-0.0.1/test/test_stream_result_of_watch_response.py +79 -0
- permify-0.0.1/test/test_subject.py +54 -0
- permify-0.0.1/test/test_subject_filter.py +56 -0
- permify-0.0.1/test/test_subject_permission_body.py +83 -0
- permify-0.0.1/test/test_subjects.py +57 -0
- permify-0.0.1/test/test_tenancy_api.py +53 -0
- permify-0.0.1/test/test_tenant.py +54 -0
- permify-0.0.1/test/test_tenant_create_request.py +53 -0
- permify-0.0.1/test/test_tenant_create_response.py +55 -0
- permify-0.0.1/test/test_tenant_delete_response.py +55 -0
- permify-0.0.1/test/test_tenant_list_request.py +53 -0
- permify-0.0.1/test/test_tenant_list_response.py +58 -0
- permify-0.0.1/test/test_tuple.py +59 -0
- permify-0.0.1/test/test_tuple_filter.py +63 -0
- permify-0.0.1/test/test_tuple_set.py +52 -0
- permify-0.0.1/test/test_tuple_to_user_set.py +55 -0
- permify-0.0.1/test/test_v1_call.py +59 -0
- permify-0.0.1/test/test_v1_expand.py +90 -0
- permify-0.0.1/test/test_v1_operation.py +63 -0
- permify-0.0.1/test/test_v1alpha1_reference.py +65 -0
- permify-0.0.1/test/test_v1alpha1_type.py +223 -0
- permify-0.0.1/test/test_values.py +56 -0
- permify-0.0.1/test/test_watch_api.py +39 -0
- permify-0.0.1/test/test_watch_body.py +52 -0
- permify-0.0.1/test/test_watch_response.py +70 -0
- permify-0.0.1/test/test_well_known_type.py +34 -0
- permify-0.0.1/test/test_write_relationships_body.py +64 -0
permify-0.0.1/LICENCE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
permify-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: permify
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Permify API
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: API Support
|
|
7
|
+
Author-email: hello@permify.co
|
|
8
|
+
License: Apache-2.0 license
|
|
9
|
+
Keywords: OpenAPI,OpenAPI-Generator,Permify API
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENCE
|
|
12
|
+
Requires-Dist: urllib3<2.1.0,>=1.25.3
|
|
13
|
+
Requires-Dist: python-dateutil
|
|
14
|
+
Requires-Dist: pydantic>=2
|
|
15
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
16
|
+
|
|
17
|
+
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
|
|
18
|
+
|
permify-0.0.1/README.md
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# permify
|
|
2
|
+
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
|
|
3
|
+
|
|
4
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
|
+
|
|
6
|
+
- API version: v0.9.9
|
|
7
|
+
- Package version: 1.0.0
|
|
8
|
+
- Generator version: 7.8.0-SNAPSHOT
|
|
9
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
|
+
For more information, please visit [https://github.com/Permify/permify/issues](https://github.com/Permify/permify/issues)
|
|
11
|
+
|
|
12
|
+
## Requirements.
|
|
13
|
+
|
|
14
|
+
Python 3.7+
|
|
15
|
+
|
|
16
|
+
## Installation & Usage
|
|
17
|
+
### pip install
|
|
18
|
+
|
|
19
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
pip install git+https://github.com/Permify/permify-python.git
|
|
23
|
+
```
|
|
24
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/Permify/permify-python.git`)
|
|
25
|
+
|
|
26
|
+
Then import the package:
|
|
27
|
+
```python
|
|
28
|
+
import permify
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Setuptools
|
|
32
|
+
|
|
33
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
python setup.py install --user
|
|
37
|
+
```
|
|
38
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
39
|
+
|
|
40
|
+
Then import the package:
|
|
41
|
+
```python
|
|
42
|
+
import permify
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Tests
|
|
46
|
+
|
|
47
|
+
Execute `pytest` to run the tests.
|
|
48
|
+
|
|
49
|
+
## Getting Started
|
|
50
|
+
|
|
51
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
|
|
55
|
+
import permify
|
|
56
|
+
from permify import ApiException
|
|
57
|
+
from pprint import pprint
|
|
58
|
+
|
|
59
|
+
# Defining the host is optional and defaults to http://localhost:3476
|
|
60
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
61
|
+
configuration = permify.Configuration(
|
|
62
|
+
host = "http://localhost:3476"
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# Enter a context with an instance of the API client
|
|
68
|
+
with permify.ApiClient(configuration) as api_client:
|
|
69
|
+
# Create an instance of the API class
|
|
70
|
+
api_instance = permify.BundleApi(api_client)
|
|
71
|
+
tenant_id = 'tenant_id_example' # str | Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.
|
|
72
|
+
body = permify.BundleDeleteBody() # BundleDeleteBody |
|
|
73
|
+
|
|
74
|
+
try:
|
|
75
|
+
# delete bundle
|
|
76
|
+
api_response = api_instance.bundle_delete(tenant_id, body)
|
|
77
|
+
print("The response of BundleApi->bundle_delete:\n")
|
|
78
|
+
pprint(api_response)
|
|
79
|
+
except ApiException as e:
|
|
80
|
+
print("Exception when calling BundleApi->bundle_delete: %s\n" % e)
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Documentation for API Endpoints
|
|
85
|
+
|
|
86
|
+
All URIs are relative to *http://localhost:3476*
|
|
87
|
+
|
|
88
|
+
Class | Method | HTTP request | Description
|
|
89
|
+
------------ | ------------- | ------------- | -------------
|
|
90
|
+
*BundleApi* | [**bundle_delete**](docs/BundleApi.md#bundle_delete) | **POST** /v1/tenants/{tenant_id}/bundle/delete | delete bundle
|
|
91
|
+
*BundleApi* | [**bundle_read**](docs/BundleApi.md#bundle_read) | **POST** /v1/tenants/{tenant_id}/bundle/read | read bundle
|
|
92
|
+
*BundleApi* | [**bundle_write**](docs/BundleApi.md#bundle_write) | **POST** /v1/tenants/{tenant_id}/bundle/write | write bundle
|
|
93
|
+
*DataApi* | [**bundle_run**](docs/DataApi.md#bundle_run) | **POST** /v1/tenants/{tenant_id}/data/run-bundle | run bundle
|
|
94
|
+
*DataApi* | [**data_attributes_read**](docs/DataApi.md#data_attributes_read) | **POST** /v1/tenants/{tenant_id}/data/attributes/read | read attributes
|
|
95
|
+
*DataApi* | [**data_delete**](docs/DataApi.md#data_delete) | **POST** /v1/tenants/{tenant_id}/data/delete | delete data
|
|
96
|
+
*DataApi* | [**data_relationships_read**](docs/DataApi.md#data_relationships_read) | **POST** /v1/tenants/{tenant_id}/data/relationships/read | read relationships
|
|
97
|
+
*DataApi* | [**data_write**](docs/DataApi.md#data_write) | **POST** /v1/tenants/{tenant_id}/data/write | write data
|
|
98
|
+
*DataApi* | [**relationships_delete**](docs/DataApi.md#relationships_delete) | **POST** /v1/tenants/{tenant_id}/relationships/delete | delete relationships
|
|
99
|
+
*DataApi* | [**relationships_write**](docs/DataApi.md#relationships_write) | **POST** /v1/tenants/{tenant_id}/relationships/write | write relationships
|
|
100
|
+
*PermissionApi* | [**permissions_check**](docs/PermissionApi.md#permissions_check) | **POST** /v1/tenants/{tenant_id}/permissions/check | check api
|
|
101
|
+
*PermissionApi* | [**permissions_expand**](docs/PermissionApi.md#permissions_expand) | **POST** /v1/tenants/{tenant_id}/permissions/expand | expand api
|
|
102
|
+
*PermissionApi* | [**permissions_lookup_entity**](docs/PermissionApi.md#permissions_lookup_entity) | **POST** /v1/tenants/{tenant_id}/permissions/lookup-entity | lookup entity
|
|
103
|
+
*PermissionApi* | [**permissions_lookup_entity_stream**](docs/PermissionApi.md#permissions_lookup_entity_stream) | **POST** /v1/tenants/{tenant_id}/permissions/lookup-entity-stream | lookup entity stream
|
|
104
|
+
*PermissionApi* | [**permissions_lookup_subject**](docs/PermissionApi.md#permissions_lookup_subject) | **POST** /v1/tenants/{tenant_id}/permissions/lookup-subject | lookup-subject
|
|
105
|
+
*PermissionApi* | [**permissions_subject_permission**](docs/PermissionApi.md#permissions_subject_permission) | **POST** /v1/tenants/{tenant_id}/permissions/subject-permission | subject permission
|
|
106
|
+
*SchemaApi* | [**schemas_list**](docs/SchemaApi.md#schemas_list) | **POST** /v1/tenants/{tenant_id}/schemas/list | list schema
|
|
107
|
+
*SchemaApi* | [**schemas_partial_write**](docs/SchemaApi.md#schemas_partial_write) | **PATCH** /v1/tenants/{tenant_id}/schemas/partial-write | partially update your authorization model
|
|
108
|
+
*SchemaApi* | [**schemas_read**](docs/SchemaApi.md#schemas_read) | **POST** /v1/tenants/{tenant_id}/schemas/read | read schema
|
|
109
|
+
*SchemaApi* | [**schemas_write**](docs/SchemaApi.md#schemas_write) | **POST** /v1/tenants/{tenant_id}/schemas/write | write schema
|
|
110
|
+
*TenancyApi* | [**tenants_create**](docs/TenancyApi.md#tenants_create) | **POST** /v1/tenants/create | create tenant
|
|
111
|
+
*TenancyApi* | [**tenants_delete**](docs/TenancyApi.md#tenants_delete) | **DELETE** /v1/tenants/{id} | delete tenant
|
|
112
|
+
*TenancyApi* | [**tenants_list**](docs/TenancyApi.md#tenants_list) | **POST** /v1/tenants/list | list tenants
|
|
113
|
+
*WatchApi* | [**watch_watch**](docs/WatchApi.md#watch_watch) | **POST** /v1/tenants/{tenant_id}/watch | watch changes
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
## Documentation For Models
|
|
117
|
+
|
|
118
|
+
- [AbstractType](docs/AbstractType.md)
|
|
119
|
+
- [Any](docs/Any.md)
|
|
120
|
+
- [Argument](docs/Argument.md)
|
|
121
|
+
- [Attribute](docs/Attribute.md)
|
|
122
|
+
- [AttributeDefinition](docs/AttributeDefinition.md)
|
|
123
|
+
- [AttributeFilter](docs/AttributeFilter.md)
|
|
124
|
+
- [AttributeReadRequestMetadata](docs/AttributeReadRequestMetadata.md)
|
|
125
|
+
- [AttributeReadResponse](docs/AttributeReadResponse.md)
|
|
126
|
+
- [AttributeType](docs/AttributeType.md)
|
|
127
|
+
- [BundleDeleteBody](docs/BundleDeleteBody.md)
|
|
128
|
+
- [BundleDeleteResponse](docs/BundleDeleteResponse.md)
|
|
129
|
+
- [BundleReadBody](docs/BundleReadBody.md)
|
|
130
|
+
- [BundleReadResponse](docs/BundleReadResponse.md)
|
|
131
|
+
- [BundleRunResponse](docs/BundleRunResponse.md)
|
|
132
|
+
- [BundleWriteBody](docs/BundleWriteBody.md)
|
|
133
|
+
- [BundleWriteResponse](docs/BundleWriteResponse.md)
|
|
134
|
+
- [CheckBody](docs/CheckBody.md)
|
|
135
|
+
- [CheckResult](docs/CheckResult.md)
|
|
136
|
+
- [CheckedExpr](docs/CheckedExpr.md)
|
|
137
|
+
- [Child](docs/Child.md)
|
|
138
|
+
- [Comprehension](docs/Comprehension.md)
|
|
139
|
+
- [ComputedAttribute](docs/ComputedAttribute.md)
|
|
140
|
+
- [ComputedUserSet](docs/ComputedUserSet.md)
|
|
141
|
+
- [Constant](docs/Constant.md)
|
|
142
|
+
- [Context](docs/Context.md)
|
|
143
|
+
- [ContextAttribute](docs/ContextAttribute.md)
|
|
144
|
+
- [CreateList](docs/CreateList.md)
|
|
145
|
+
- [CreateStruct](docs/CreateStruct.md)
|
|
146
|
+
- [DataBundle](docs/DataBundle.md)
|
|
147
|
+
- [DataChange](docs/DataChange.md)
|
|
148
|
+
- [DataChangeOperation](docs/DataChangeOperation.md)
|
|
149
|
+
- [DataChanges](docs/DataChanges.md)
|
|
150
|
+
- [DataDeleteBody](docs/DataDeleteBody.md)
|
|
151
|
+
- [DataDeleteResponse](docs/DataDeleteResponse.md)
|
|
152
|
+
- [DataWriteBody](docs/DataWriteBody.md)
|
|
153
|
+
- [DataWriteRequestMetadata](docs/DataWriteRequestMetadata.md)
|
|
154
|
+
- [DataWriteResponse](docs/DataWriteResponse.md)
|
|
155
|
+
- [DeleteRelationshipsBody](docs/DeleteRelationshipsBody.md)
|
|
156
|
+
- [Entity](docs/Entity.md)
|
|
157
|
+
- [EntityDefinition](docs/EntityDefinition.md)
|
|
158
|
+
- [EntityDefinitionReference](docs/EntityDefinitionReference.md)
|
|
159
|
+
- [EntityFilter](docs/EntityFilter.md)
|
|
160
|
+
- [Entry](docs/Entry.md)
|
|
161
|
+
- [ExpandLeaf](docs/ExpandLeaf.md)
|
|
162
|
+
- [ExpandTreeNode](docs/ExpandTreeNode.md)
|
|
163
|
+
- [ExpandTreeNodeOperation](docs/ExpandTreeNodeOperation.md)
|
|
164
|
+
- [Expr](docs/Expr.md)
|
|
165
|
+
- [ExprCall](docs/ExprCall.md)
|
|
166
|
+
- [FunctionType](docs/FunctionType.md)
|
|
167
|
+
- [Ident](docs/Ident.md)
|
|
168
|
+
- [Leaf](docs/Leaf.md)
|
|
169
|
+
- [ListType](docs/ListType.md)
|
|
170
|
+
- [LookupEntityBody](docs/LookupEntityBody.md)
|
|
171
|
+
- [LookupEntityStreamBody](docs/LookupEntityStreamBody.md)
|
|
172
|
+
- [LookupSubjectBody](docs/LookupSubjectBody.md)
|
|
173
|
+
- [MapType](docs/MapType.md)
|
|
174
|
+
- [PartialWriteBody](docs/PartialWriteBody.md)
|
|
175
|
+
- [Partials](docs/Partials.md)
|
|
176
|
+
- [PermissionCheckRequestMetadata](docs/PermissionCheckRequestMetadata.md)
|
|
177
|
+
- [PermissionCheckResponse](docs/PermissionCheckResponse.md)
|
|
178
|
+
- [PermissionCheckResponseMetadata](docs/PermissionCheckResponseMetadata.md)
|
|
179
|
+
- [PermissionDefinition](docs/PermissionDefinition.md)
|
|
180
|
+
- [PermissionExpandBody](docs/PermissionExpandBody.md)
|
|
181
|
+
- [PermissionExpandRequestMetadata](docs/PermissionExpandRequestMetadata.md)
|
|
182
|
+
- [PermissionExpandResponse](docs/PermissionExpandResponse.md)
|
|
183
|
+
- [PermissionLookupEntityRequestMetadata](docs/PermissionLookupEntityRequestMetadata.md)
|
|
184
|
+
- [PermissionLookupEntityResponse](docs/PermissionLookupEntityResponse.md)
|
|
185
|
+
- [PermissionLookupEntityStreamResponse](docs/PermissionLookupEntityStreamResponse.md)
|
|
186
|
+
- [PermissionLookupSubjectRequestMetadata](docs/PermissionLookupSubjectRequestMetadata.md)
|
|
187
|
+
- [PermissionLookupSubjectResponse](docs/PermissionLookupSubjectResponse.md)
|
|
188
|
+
- [PermissionSubjectPermissionRequestMetadata](docs/PermissionSubjectPermissionRequestMetadata.md)
|
|
189
|
+
- [PermissionSubjectPermissionResponse](docs/PermissionSubjectPermissionResponse.md)
|
|
190
|
+
- [PrimitiveType](docs/PrimitiveType.md)
|
|
191
|
+
- [ReadAttributesBody](docs/ReadAttributesBody.md)
|
|
192
|
+
- [ReadRelationshipsBody](docs/ReadRelationshipsBody.md)
|
|
193
|
+
- [RelationDefinition](docs/RelationDefinition.md)
|
|
194
|
+
- [RelationReference](docs/RelationReference.md)
|
|
195
|
+
- [RelationshipDeleteResponse](docs/RelationshipDeleteResponse.md)
|
|
196
|
+
- [RelationshipReadRequestMetadata](docs/RelationshipReadRequestMetadata.md)
|
|
197
|
+
- [RelationshipReadResponse](docs/RelationshipReadResponse.md)
|
|
198
|
+
- [RelationshipWriteRequestMetadata](docs/RelationshipWriteRequestMetadata.md)
|
|
199
|
+
- [RelationshipWriteResponse](docs/RelationshipWriteResponse.md)
|
|
200
|
+
- [Rewrite](docs/Rewrite.md)
|
|
201
|
+
- [RewriteOperation](docs/RewriteOperation.md)
|
|
202
|
+
- [RuleDefinition](docs/RuleDefinition.md)
|
|
203
|
+
- [RunBundleBody](docs/RunBundleBody.md)
|
|
204
|
+
- [SchemaDefinition](docs/SchemaDefinition.md)
|
|
205
|
+
- [SchemaDefinitionReference](docs/SchemaDefinitionReference.md)
|
|
206
|
+
- [SchemaList](docs/SchemaList.md)
|
|
207
|
+
- [SchemaListBody](docs/SchemaListBody.md)
|
|
208
|
+
- [SchemaListResponse](docs/SchemaListResponse.md)
|
|
209
|
+
- [SchemaPartialWriteRequestMetadata](docs/SchemaPartialWriteRequestMetadata.md)
|
|
210
|
+
- [SchemaPartialWriteResponse](docs/SchemaPartialWriteResponse.md)
|
|
211
|
+
- [SchemaReadBody](docs/SchemaReadBody.md)
|
|
212
|
+
- [SchemaReadRequestMetadata](docs/SchemaReadRequestMetadata.md)
|
|
213
|
+
- [SchemaReadResponse](docs/SchemaReadResponse.md)
|
|
214
|
+
- [SchemaWriteBody](docs/SchemaWriteBody.md)
|
|
215
|
+
- [SchemaWriteResponse](docs/SchemaWriteResponse.md)
|
|
216
|
+
- [Select](docs/Select.md)
|
|
217
|
+
- [SourceInfo](docs/SourceInfo.md)
|
|
218
|
+
- [Status](docs/Status.md)
|
|
219
|
+
- [StreamResultOfPermissionLookupEntityStreamResponse](docs/StreamResultOfPermissionLookupEntityStreamResponse.md)
|
|
220
|
+
- [StreamResultOfWatchResponse](docs/StreamResultOfWatchResponse.md)
|
|
221
|
+
- [Subject](docs/Subject.md)
|
|
222
|
+
- [SubjectFilter](docs/SubjectFilter.md)
|
|
223
|
+
- [SubjectPermissionBody](docs/SubjectPermissionBody.md)
|
|
224
|
+
- [Subjects](docs/Subjects.md)
|
|
225
|
+
- [Tenant](docs/Tenant.md)
|
|
226
|
+
- [TenantCreateRequest](docs/TenantCreateRequest.md)
|
|
227
|
+
- [TenantCreateResponse](docs/TenantCreateResponse.md)
|
|
228
|
+
- [TenantDeleteResponse](docs/TenantDeleteResponse.md)
|
|
229
|
+
- [TenantListRequest](docs/TenantListRequest.md)
|
|
230
|
+
- [TenantListResponse](docs/TenantListResponse.md)
|
|
231
|
+
- [Tuple](docs/Tuple.md)
|
|
232
|
+
- [TupleFilter](docs/TupleFilter.md)
|
|
233
|
+
- [TupleSet](docs/TupleSet.md)
|
|
234
|
+
- [TupleToUserSet](docs/TupleToUserSet.md)
|
|
235
|
+
- [V1Call](docs/V1Call.md)
|
|
236
|
+
- [V1Expand](docs/V1Expand.md)
|
|
237
|
+
- [V1Operation](docs/V1Operation.md)
|
|
238
|
+
- [V1alpha1Reference](docs/V1alpha1Reference.md)
|
|
239
|
+
- [V1alpha1Type](docs/V1alpha1Type.md)
|
|
240
|
+
- [Values](docs/Values.md)
|
|
241
|
+
- [WatchBody](docs/WatchBody.md)
|
|
242
|
+
- [WatchResponse](docs/WatchResponse.md)
|
|
243
|
+
- [WellKnownType](docs/WellKnownType.md)
|
|
244
|
+
- [WriteRelationshipsBody](docs/WriteRelationshipsBody.md)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
<a id="documentation-for-authorization"></a>
|
|
248
|
+
## Documentation For Authorization
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
Authentication schemes defined for the API:
|
|
252
|
+
<a id="ApiKeyAuth"></a>
|
|
253
|
+
### ApiKeyAuth
|
|
254
|
+
|
|
255
|
+
- **Type**: API key
|
|
256
|
+
- **API key parameter name**: Authorization
|
|
257
|
+
- **Location**: HTTP header
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
## Author
|
|
261
|
+
|
|
262
|
+
hello@permify.co
|
|
263
|
+
|
|
264
|
+
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Permify API
|
|
7
|
+
|
|
8
|
+
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: v0.9.9
|
|
11
|
+
Contact: hello@permify.co
|
|
12
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
|
+
|
|
14
|
+
Do not edit the class manually.
|
|
15
|
+
""" # noqa: E501
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
__version__ = "1.0.0"
|
|
19
|
+
|
|
20
|
+
# import apis into sdk package
|
|
21
|
+
from permify.api.bundle_api import BundleApi
|
|
22
|
+
from permify.api.data_api import DataApi
|
|
23
|
+
from permify.api.permission_api import PermissionApi
|
|
24
|
+
from permify.api.schema_api import SchemaApi
|
|
25
|
+
from permify.api.tenancy_api import TenancyApi
|
|
26
|
+
from permify.api.watch_api import WatchApi
|
|
27
|
+
|
|
28
|
+
# import ApiClient
|
|
29
|
+
from permify.api_response import ApiResponse
|
|
30
|
+
from permify.api_client import ApiClient
|
|
31
|
+
from permify.configuration import Configuration
|
|
32
|
+
from permify.exceptions import OpenApiException
|
|
33
|
+
from permify.exceptions import ApiTypeError
|
|
34
|
+
from permify.exceptions import ApiValueError
|
|
35
|
+
from permify.exceptions import ApiKeyError
|
|
36
|
+
from permify.exceptions import ApiAttributeError
|
|
37
|
+
from permify.exceptions import ApiException
|
|
38
|
+
|
|
39
|
+
# import models into sdk package
|
|
40
|
+
from permify.models.abstract_type import AbstractType
|
|
41
|
+
from permify.models.any import Any
|
|
42
|
+
from permify.models.argument import Argument
|
|
43
|
+
from permify.models.attribute import Attribute
|
|
44
|
+
from permify.models.attribute_definition import AttributeDefinition
|
|
45
|
+
from permify.models.attribute_filter import AttributeFilter
|
|
46
|
+
from permify.models.attribute_read_request_metadata import AttributeReadRequestMetadata
|
|
47
|
+
from permify.models.attribute_read_response import AttributeReadResponse
|
|
48
|
+
from permify.models.attribute_type import AttributeType
|
|
49
|
+
from permify.models.bundle_delete_body import BundleDeleteBody
|
|
50
|
+
from permify.models.bundle_delete_response import BundleDeleteResponse
|
|
51
|
+
from permify.models.bundle_read_body import BundleReadBody
|
|
52
|
+
from permify.models.bundle_read_response import BundleReadResponse
|
|
53
|
+
from permify.models.bundle_run_response import BundleRunResponse
|
|
54
|
+
from permify.models.bundle_write_body import BundleWriteBody
|
|
55
|
+
from permify.models.bundle_write_response import BundleWriteResponse
|
|
56
|
+
from permify.models.check_body import CheckBody
|
|
57
|
+
from permify.models.check_result import CheckResult
|
|
58
|
+
from permify.models.checked_expr import CheckedExpr
|
|
59
|
+
from permify.models.child import Child
|
|
60
|
+
from permify.models.comprehension import Comprehension
|
|
61
|
+
from permify.models.computed_attribute import ComputedAttribute
|
|
62
|
+
from permify.models.computed_user_set import ComputedUserSet
|
|
63
|
+
from permify.models.constant import Constant
|
|
64
|
+
from permify.models.context import Context
|
|
65
|
+
from permify.models.context_attribute import ContextAttribute
|
|
66
|
+
from permify.models.create_list import CreateList
|
|
67
|
+
from permify.models.create_struct import CreateStruct
|
|
68
|
+
from permify.models.data_bundle import DataBundle
|
|
69
|
+
from permify.models.data_change import DataChange
|
|
70
|
+
from permify.models.data_change_operation import DataChangeOperation
|
|
71
|
+
from permify.models.data_changes import DataChanges
|
|
72
|
+
from permify.models.data_delete_body import DataDeleteBody
|
|
73
|
+
from permify.models.data_delete_response import DataDeleteResponse
|
|
74
|
+
from permify.models.data_write_body import DataWriteBody
|
|
75
|
+
from permify.models.data_write_request_metadata import DataWriteRequestMetadata
|
|
76
|
+
from permify.models.data_write_response import DataWriteResponse
|
|
77
|
+
from permify.models.delete_relationships_body import DeleteRelationshipsBody
|
|
78
|
+
from permify.models.entity import Entity
|
|
79
|
+
from permify.models.entity_definition import EntityDefinition
|
|
80
|
+
from permify.models.entity_definition_reference import EntityDefinitionReference
|
|
81
|
+
from permify.models.entity_filter import EntityFilter
|
|
82
|
+
from permify.models.entry import Entry
|
|
83
|
+
from permify.models.expand_leaf import ExpandLeaf
|
|
84
|
+
from permify.models.expand_tree_node import ExpandTreeNode
|
|
85
|
+
from permify.models.expand_tree_node_operation import ExpandTreeNodeOperation
|
|
86
|
+
from permify.models.expr import Expr
|
|
87
|
+
from permify.models.expr_call import ExprCall
|
|
88
|
+
from permify.models.function_type import FunctionType
|
|
89
|
+
from permify.models.ident import Ident
|
|
90
|
+
from permify.models.leaf import Leaf
|
|
91
|
+
from permify.models.list_type import ListType
|
|
92
|
+
from permify.models.lookup_entity_body import LookupEntityBody
|
|
93
|
+
from permify.models.lookup_entity_stream_body import LookupEntityStreamBody
|
|
94
|
+
from permify.models.lookup_subject_body import LookupSubjectBody
|
|
95
|
+
from permify.models.map_type import MapType
|
|
96
|
+
from permify.models.partial_write_body import PartialWriteBody
|
|
97
|
+
from permify.models.partials import Partials
|
|
98
|
+
from permify.models.permission_check_request_metadata import PermissionCheckRequestMetadata
|
|
99
|
+
from permify.models.permission_check_response import PermissionCheckResponse
|
|
100
|
+
from permify.models.permission_check_response_metadata import PermissionCheckResponseMetadata
|
|
101
|
+
from permify.models.permission_definition import PermissionDefinition
|
|
102
|
+
from permify.models.permission_expand_body import PermissionExpandBody
|
|
103
|
+
from permify.models.permission_expand_request_metadata import PermissionExpandRequestMetadata
|
|
104
|
+
from permify.models.permission_expand_response import PermissionExpandResponse
|
|
105
|
+
from permify.models.permission_lookup_entity_request_metadata import PermissionLookupEntityRequestMetadata
|
|
106
|
+
from permify.models.permission_lookup_entity_response import PermissionLookupEntityResponse
|
|
107
|
+
from permify.models.permission_lookup_entity_stream_response import PermissionLookupEntityStreamResponse
|
|
108
|
+
from permify.models.permission_lookup_subject_request_metadata import PermissionLookupSubjectRequestMetadata
|
|
109
|
+
from permify.models.permission_lookup_subject_response import PermissionLookupSubjectResponse
|
|
110
|
+
from permify.models.permission_subject_permission_request_metadata import PermissionSubjectPermissionRequestMetadata
|
|
111
|
+
from permify.models.permission_subject_permission_response import PermissionSubjectPermissionResponse
|
|
112
|
+
from permify.models.primitive_type import PrimitiveType
|
|
113
|
+
from permify.models.read_attributes_body import ReadAttributesBody
|
|
114
|
+
from permify.models.read_relationships_body import ReadRelationshipsBody
|
|
115
|
+
from permify.models.relation_definition import RelationDefinition
|
|
116
|
+
from permify.models.relation_reference import RelationReference
|
|
117
|
+
from permify.models.relationship_delete_response import RelationshipDeleteResponse
|
|
118
|
+
from permify.models.relationship_read_request_metadata import RelationshipReadRequestMetadata
|
|
119
|
+
from permify.models.relationship_read_response import RelationshipReadResponse
|
|
120
|
+
from permify.models.relationship_write_request_metadata import RelationshipWriteRequestMetadata
|
|
121
|
+
from permify.models.relationship_write_response import RelationshipWriteResponse
|
|
122
|
+
from permify.models.rewrite import Rewrite
|
|
123
|
+
from permify.models.rewrite_operation import RewriteOperation
|
|
124
|
+
from permify.models.rule_definition import RuleDefinition
|
|
125
|
+
from permify.models.run_bundle_body import RunBundleBody
|
|
126
|
+
from permify.models.schema_definition import SchemaDefinition
|
|
127
|
+
from permify.models.schema_definition_reference import SchemaDefinitionReference
|
|
128
|
+
from permify.models.schema_list import SchemaList
|
|
129
|
+
from permify.models.schema_list_body import SchemaListBody
|
|
130
|
+
from permify.models.schema_list_response import SchemaListResponse
|
|
131
|
+
from permify.models.schema_partial_write_request_metadata import SchemaPartialWriteRequestMetadata
|
|
132
|
+
from permify.models.schema_partial_write_response import SchemaPartialWriteResponse
|
|
133
|
+
from permify.models.schema_read_body import SchemaReadBody
|
|
134
|
+
from permify.models.schema_read_request_metadata import SchemaReadRequestMetadata
|
|
135
|
+
from permify.models.schema_read_response import SchemaReadResponse
|
|
136
|
+
from permify.models.schema_write_body import SchemaWriteBody
|
|
137
|
+
from permify.models.schema_write_response import SchemaWriteResponse
|
|
138
|
+
from permify.models.select import Select
|
|
139
|
+
from permify.models.source_info import SourceInfo
|
|
140
|
+
from permify.models.status import Status
|
|
141
|
+
from permify.models.stream_result_of_permission_lookup_entity_stream_response import StreamResultOfPermissionLookupEntityStreamResponse
|
|
142
|
+
from permify.models.stream_result_of_watch_response import StreamResultOfWatchResponse
|
|
143
|
+
from permify.models.subject import Subject
|
|
144
|
+
from permify.models.subject_filter import SubjectFilter
|
|
145
|
+
from permify.models.subject_permission_body import SubjectPermissionBody
|
|
146
|
+
from permify.models.subjects import Subjects
|
|
147
|
+
from permify.models.tenant import Tenant
|
|
148
|
+
from permify.models.tenant_create_request import TenantCreateRequest
|
|
149
|
+
from permify.models.tenant_create_response import TenantCreateResponse
|
|
150
|
+
from permify.models.tenant_delete_response import TenantDeleteResponse
|
|
151
|
+
from permify.models.tenant_list_request import TenantListRequest
|
|
152
|
+
from permify.models.tenant_list_response import TenantListResponse
|
|
153
|
+
from permify.models.tuple import Tuple
|
|
154
|
+
from permify.models.tuple_filter import TupleFilter
|
|
155
|
+
from permify.models.tuple_set import TupleSet
|
|
156
|
+
from permify.models.tuple_to_user_set import TupleToUserSet
|
|
157
|
+
from permify.models.v1_call import V1Call
|
|
158
|
+
from permify.models.v1_expand import V1Expand
|
|
159
|
+
from permify.models.v1_operation import V1Operation
|
|
160
|
+
from permify.models.v1alpha1_reference import V1alpha1Reference
|
|
161
|
+
from permify.models.v1alpha1_type import V1alpha1Type
|
|
162
|
+
from permify.models.values import Values
|
|
163
|
+
from permify.models.watch_body import WatchBody
|
|
164
|
+
from permify.models.watch_response import WatchResponse
|
|
165
|
+
from permify.models.well_known_type import WellKnownType
|
|
166
|
+
from permify.models.write_relationships_body import WriteRelationshipsBody
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from permify.api.bundle_api import BundleApi
|
|
5
|
+
from permify.api.data_api import DataApi
|
|
6
|
+
from permify.api.permission_api import PermissionApi
|
|
7
|
+
from permify.api.schema_api import SchemaApi
|
|
8
|
+
from permify.api.tenancy_api import TenancyApi
|
|
9
|
+
from permify.api.watch_api import WatchApi
|
|
10
|
+
|