authgebra 0.1.0__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.
- authgebra/__init__.py +92 -0
- authgebra/_core.py +477 -0
- authgebra/_generated/__init__.py +2 -0
- authgebra/_generated/aio.py +1535 -0
- authgebra/_generated/codes.py +29 -0
- authgebra/_generated/models.py +4041 -0
- authgebra/_generated/operations.py +108 -0
- authgebra/_generated/sync.py +1535 -0
- authgebra/_model.py +252 -0
- authgebra/_parse.py +158 -0
- authgebra/_version.py +3 -0
- authgebra/aclient.py +256 -0
- authgebra/client.py +272 -0
- authgebra/config.py +79 -0
- authgebra/errors.py +177 -0
- authgebra/models.py +263 -0
- authgebra/py.typed +0 -0
- authgebra-0.1.0.dist-info/METADATA +181 -0
- authgebra-0.1.0.dist-info/RECORD +22 -0
- authgebra-0.1.0.dist-info/WHEEL +5 -0
- authgebra-0.1.0.dist-info/licenses/LICENSE +42 -0
- authgebra-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"""GENERATED by tools/generate.py from sdks/contracts/openapi.json - do not edit."""
|
|
2
|
+
|
|
3
|
+
SPEC_SHA256 = "907bd9616dba9993c479cf551bc1e69ac046776b72dd58f5af1138be10c34c25"
|
|
4
|
+
|
|
5
|
+
#: (operationId, admin group attribute, HTTP method, path template)
|
|
6
|
+
OPERATIONS: tuple[tuple[str, str, str, str], ...] = (
|
|
7
|
+
("attributes_stats", "attributes", "GET", "/api/v1/attributes/stats"),
|
|
8
|
+
("create_attribute", "attributes", "POST", "/api/v1/attributes"),
|
|
9
|
+
("delete_attribute", "attributes", "DELETE", "/api/v1/attributes/{id}"),
|
|
10
|
+
("get_attribute", "attributes", "GET", "/api/v1/attributes/{id}"),
|
|
11
|
+
("get_user_attributes", "attributes", "GET", "/api/v1/users/{id}/attributes"),
|
|
12
|
+
("list_attributes", "attributes", "GET", "/api/v1/attributes"),
|
|
13
|
+
("patch_attribute", "attributes", "PATCH", "/api/v1/attributes/{id}"),
|
|
14
|
+
("replace_user_attributes", "attributes", "PUT", "/api/v1/users/{id}/attributes"),
|
|
15
|
+
("audit_stats", "audit", "GET", "/api/v1/audit/stats"),
|
|
16
|
+
("list_audit_events", "audit", "GET", "/api/v1/audit"),
|
|
17
|
+
("change_password", "auth", "POST", "/api/v1/auth/change-password"),
|
|
18
|
+
("list_sessions", "auth", "GET", "/api/v1/auth/sessions"),
|
|
19
|
+
("login", "auth", "POST", "/api/v1/auth/login"),
|
|
20
|
+
("logout", "auth", "POST", "/api/v1/auth/logout"),
|
|
21
|
+
("logout_all", "auth", "POST", "/api/v1/auth/logout-all"),
|
|
22
|
+
("me", "auth", "GET", "/api/v1/auth/me"),
|
|
23
|
+
("mfa_disable", "auth", "DELETE", "/api/v1/auth/mfa"),
|
|
24
|
+
("mfa_enroll", "auth", "POST", "/api/v1/auth/mfa/enroll"),
|
|
25
|
+
("mfa_enroll_verify", "auth", "POST", "/api/v1/auth/mfa/enroll/verify"),
|
|
26
|
+
("mfa_enrollment_start", "auth", "POST", "/api/v1/auth/mfa/enrollment/start"),
|
|
27
|
+
("mfa_enrollment_verify", "auth", "POST", "/api/v1/auth/mfa/enrollment/verify"),
|
|
28
|
+
("mfa_recovery", "auth", "POST", "/api/v1/auth/mfa/recovery"),
|
|
29
|
+
("mfa_regenerate_recovery_codes", "auth", "POST", "/api/v1/auth/mfa/recovery-codes/regenerate"),
|
|
30
|
+
("mfa_status", "auth", "GET", "/api/v1/auth/mfa/status"),
|
|
31
|
+
("mfa_verify", "auth", "POST", "/api/v1/auth/mfa/verify"),
|
|
32
|
+
("refresh", "auth", "POST", "/api/v1/auth/refresh"),
|
|
33
|
+
("revoke_session", "auth", "DELETE", "/api/v1/auth/sessions/{id}"),
|
|
34
|
+
("batch_check", "authz", "POST", "/api/v1/authz/batch-check"),
|
|
35
|
+
("check", "authz", "POST", "/api/v1/authz/check"),
|
|
36
|
+
("explain", "authz", "POST", "/api/v1/authz/explain"),
|
|
37
|
+
("list_authorized_resources", "authz", "POST", "/api/v1/authz/list-resources"),
|
|
38
|
+
("revision", "authz", "GET", "/api/v1/authz/revision"),
|
|
39
|
+
("dashboard_summary", "dashboard", "GET", "/api/v1/dashboard/summary"),
|
|
40
|
+
("live", "health", "GET", "/health/live"),
|
|
41
|
+
("ready", "health", "GET", "/health/ready"),
|
|
42
|
+
("create_permission", "permissions", "POST", "/api/v1/permissions"),
|
|
43
|
+
("deprecate_permission", "permissions", "POST", "/api/v1/permissions/{id}/deprecate"),
|
|
44
|
+
("get_permission", "permissions", "GET", "/api/v1/permissions/{id}"),
|
|
45
|
+
("list_permissions", "permissions", "GET", "/api/v1/permissions"),
|
|
46
|
+
("undeprecate_permission", "permissions", "POST", "/api/v1/permissions/{id}/undeprecate"),
|
|
47
|
+
("compile_preview", "policies", "POST", "/api/v1/policies/{id}/compile-preview"),
|
|
48
|
+
("create_policy", "policies", "POST", "/api/v1/policies"),
|
|
49
|
+
("delete_policy", "policies", "DELETE", "/api/v1/policies/{id}"),
|
|
50
|
+
("disable_policy", "policies", "POST", "/api/v1/policies/{id}/disable"),
|
|
51
|
+
("get_policy", "policies", "GET", "/api/v1/policies/{id}"),
|
|
52
|
+
("impact_preview", "policies", "POST", "/api/v1/policies/{id}/impact-preview"),
|
|
53
|
+
("list_policies", "policies", "GET", "/api/v1/policies"),
|
|
54
|
+
("list_policy_tests", "policies", "GET", "/api/v1/policies/{id}/tests"),
|
|
55
|
+
("patch_policy", "policies", "PATCH", "/api/v1/policies/{id}"),
|
|
56
|
+
("policies_stats", "policies", "GET", "/api/v1/policies/stats"),
|
|
57
|
+
("publish_policy", "policies", "POST", "/api/v1/policies/{id}/publish"),
|
|
58
|
+
("upsert_policy_test", "policies", "POST", "/api/v1/policies/{id}/tests"),
|
|
59
|
+
("validate_expression", "policies", "POST", "/api/v1/policies/validate"),
|
|
60
|
+
("validate_policy", "policies", "POST", "/api/v1/policies/{id}/validate"),
|
|
61
|
+
("create_policy_binding", "policy_bindings", "POST", "/api/v1/policy-bindings"),
|
|
62
|
+
("delete_policy_binding", "policy_bindings", "DELETE", "/api/v1/policy-bindings/{id}"),
|
|
63
|
+
("list_policy_bindings", "policy_bindings", "GET", "/api/v1/policy-bindings"),
|
|
64
|
+
("patch_policy_binding", "policy_bindings", "PATCH", "/api/v1/policy-bindings/{id}"),
|
|
65
|
+
("policy_bindings_stats", "policy_bindings", "GET", "/api/v1/policy-bindings/stats"),
|
|
66
|
+
("create_relation_definition", "relation_definitions", "POST", "/api/v1/relation-definitions"),
|
|
67
|
+
("delete_relation_definition", "relation_definitions", "DELETE", "/api/v1/relation-definitions/{id}"),
|
|
68
|
+
("list_relation_definitions", "relation_definitions", "GET", "/api/v1/relation-definitions"),
|
|
69
|
+
("create_relation_tuple", "relation_tuples", "POST", "/api/v1/relation-tuples"),
|
|
70
|
+
("delete_relation_tuple", "relation_tuples", "DELETE", "/api/v1/relation-tuples/{id}"),
|
|
71
|
+
("list_relation_tuples", "relation_tuples", "GET", "/api/v1/relation-tuples"),
|
|
72
|
+
("create_resource_type", "resource_types", "POST", "/api/v1/resource-types"),
|
|
73
|
+
("get_resource_type", "resource_types", "GET", "/api/v1/resource-types/{id}"),
|
|
74
|
+
("list_resource_types", "resource_types", "GET", "/api/v1/resource-types"),
|
|
75
|
+
("patch_resource_type", "resource_types", "PATCH", "/api/v1/resource-types/{id}"),
|
|
76
|
+
("resource_types_stats", "resource_types", "GET", "/api/v1/resource-types/stats"),
|
|
77
|
+
("create_resource", "resources", "POST", "/api/v1/resources"),
|
|
78
|
+
("delete_resource", "resources", "DELETE", "/api/v1/resources/{id}"),
|
|
79
|
+
("get_resource", "resources", "GET", "/api/v1/resources/{id}"),
|
|
80
|
+
("get_resource_attributes", "resources", "GET", "/api/v1/resources/{id}/attributes"),
|
|
81
|
+
("list_resources", "resources", "GET", "/api/v1/resources"),
|
|
82
|
+
("patch_resource", "resources", "PATCH", "/api/v1/resources/{id}"),
|
|
83
|
+
("replace_resource_attributes", "resources", "PUT", "/api/v1/resources/{id}/attributes"),
|
|
84
|
+
("resources_stats", "resources", "GET", "/api/v1/resources/stats"),
|
|
85
|
+
("create_role", "roles", "POST", "/api/v1/roles"),
|
|
86
|
+
("delete_role", "roles", "DELETE", "/api/v1/roles/{id}"),
|
|
87
|
+
("get_role", "roles", "GET", "/api/v1/roles/{id}"),
|
|
88
|
+
("get_role_permissions", "roles", "GET", "/api/v1/roles/{id}/permissions"),
|
|
89
|
+
("list_roles", "roles", "GET", "/api/v1/roles"),
|
|
90
|
+
("patch_role", "roles", "PATCH", "/api/v1/roles/{id}"),
|
|
91
|
+
("replace_role_permissions", "roles", "PUT", "/api/v1/roles/{id}/permissions"),
|
|
92
|
+
("roles_stats", "roles", "GET", "/api/v1/roles/stats"),
|
|
93
|
+
("create_admin", "setup", "POST", "/api/v1/setup/admin"),
|
|
94
|
+
("setup_state", "setup", "GET", "/api/v1/setup/admin"),
|
|
95
|
+
("create_user", "users", "POST", "/api/v1/users"),
|
|
96
|
+
("disable_user", "users", "POST", "/api/v1/users/{id}/disable"),
|
|
97
|
+
("effective_permissions", "users", "GET", "/api/v1/users/{id}/effective-permissions"),
|
|
98
|
+
("enable_user", "users", "POST", "/api/v1/users/{id}/enable"),
|
|
99
|
+
("get_user", "users", "GET", "/api/v1/users/{id}"),
|
|
100
|
+
("get_user_mfa_policy", "users", "GET", "/api/v1/users/{id}/mfa-policy"),
|
|
101
|
+
("get_user_roles", "users", "GET", "/api/v1/users/{id}/roles"),
|
|
102
|
+
("list_users", "users", "GET", "/api/v1/users"),
|
|
103
|
+
("patch_user", "users", "PATCH", "/api/v1/users/{id}"),
|
|
104
|
+
("replace_user_roles", "users", "PUT", "/api/v1/users/{id}/roles"),
|
|
105
|
+
("reset_password", "users", "POST", "/api/v1/users/{id}/reset-password"),
|
|
106
|
+
("set_user_mfa_policy", "users", "PUT", "/api/v1/users/{id}/mfa-policy"),
|
|
107
|
+
("users_stats", "users", "GET", "/api/v1/users/stats"),
|
|
108
|
+
)
|