abs-auth-rbac-core 0.2.2__tar.gz → 0.2.4__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.
Potentially problematic release.
This version of abs-auth-rbac-core might be problematic. Click here for more details.
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/PKG-INFO +1 -1
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/util/permission_constants.py +67 -16
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/pyproject.toml +1 -1
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/README.md +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/__init__.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/auth/__init__.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/auth/auth_functions.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/auth/jwt_functions.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/auth/middleware.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/__init__.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/base_model.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/gov_casbin_rule.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/permissions.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/rbac_model.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/role_permission.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/roles.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/seeder/permission_seeder.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/user.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/user_permission.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/user_role.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/rbac/__init__.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/rbac/decorator.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/rbac/policy.conf +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/rbac/service.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/schema/__init__.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/schema/permission.py +0 -0
- {abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/util/__init__.py +0 -0
|
@@ -149,6 +149,11 @@ class PermissionAction(str, Enum):
|
|
|
149
149
|
EDIT_BILLING = "EDIT_BILLING"
|
|
150
150
|
CREATE_BILLING = "CREATE_BILLING"
|
|
151
151
|
VIEW_ASL = "VIEW_ASL"
|
|
152
|
+
CONNECT_ACCOUNT = "CONNECT_ACCOUNT"
|
|
153
|
+
VIEW_IMPORT_DATA = "VIEW_IMPORT_DATA"
|
|
154
|
+
VIEW_WORKFLOW = "VIEW_WORKFLOW"
|
|
155
|
+
VIEW_ERROR_DATA = "VIEW_ERROR_DATA"
|
|
156
|
+
|
|
152
157
|
|
|
153
158
|
|
|
154
159
|
|
|
@@ -165,6 +170,7 @@ class PermissionModule(str, Enum):
|
|
|
165
170
|
ENTITY_MANAGER="ENTITY_MANAGER"
|
|
166
171
|
ASL = "ASL"
|
|
167
172
|
EDS = "EDS"
|
|
173
|
+
WORKFORCE_AGENT = "WORKFORCE_AGENT"
|
|
168
174
|
|
|
169
175
|
|
|
170
176
|
|
|
@@ -248,6 +254,8 @@ class PermissionResource(str, Enum):
|
|
|
248
254
|
COMMUNICATION_CHANNEL_MANAGEMENT_PERMISSIONS="COMMUNICATION_CHANNEL_MANAGEMENT_PERMISSIONS"
|
|
249
255
|
BILLING_MANAGEMENT = "BILLING_MANAGEMENT"
|
|
250
256
|
ASL = "ASL"
|
|
257
|
+
DATA_IMPORT = "DATA_IMPORT"
|
|
258
|
+
INTEGRATION = "INTEGRATION"
|
|
251
259
|
|
|
252
260
|
|
|
253
261
|
class PermissionData(NamedTuple):
|
|
@@ -259,6 +267,49 @@ class PermissionData(NamedTuple):
|
|
|
259
267
|
|
|
260
268
|
|
|
261
269
|
class PermissionConstants:
|
|
270
|
+
|
|
271
|
+
# EDS Data Import Permissions
|
|
272
|
+
EDS_DATA_IMPORT_CONNECT_ACCOUNT = PermissionData(
|
|
273
|
+
name="Connect Account",
|
|
274
|
+
description="Connect Account",
|
|
275
|
+
module=PermissionModule.EDS,
|
|
276
|
+
resource=PermissionResource.DATA_IMPORT,
|
|
277
|
+
action=PermissionAction.CONNECT_ACCOUNT
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
EDS_DATA_IMPORT_VIEW_IMPORT_DATA = PermissionData(
|
|
281
|
+
name="View Import Data",
|
|
282
|
+
description="View Import Data",
|
|
283
|
+
module=PermissionModule.EDS,
|
|
284
|
+
resource=PermissionResource.DATA_IMPORT,
|
|
285
|
+
action=PermissionAction.VIEW_IMPORT_DATA
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
EDS_DATA_IMPORT_VIEW_WORKFLOW = PermissionData(
|
|
289
|
+
name="View Workflow",
|
|
290
|
+
description="View Workflow",
|
|
291
|
+
module=PermissionModule.EDS,
|
|
292
|
+
resource=PermissionResource.DATA_IMPORT,
|
|
293
|
+
action=PermissionAction.VIEW_WORKFLOW
|
|
294
|
+
)
|
|
295
|
+
|
|
296
|
+
EDS_DATA_IMPORT_VIEW_ERROR_DATA = PermissionData(
|
|
297
|
+
name="View Error Data",
|
|
298
|
+
description="View Error Data",
|
|
299
|
+
module=PermissionModule.EDS,
|
|
300
|
+
resource=PermissionResource.DATA_IMPORT,
|
|
301
|
+
action=PermissionAction.VIEW_ERROR_DATA
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
# EDS Integration Permissions
|
|
305
|
+
EDS_INTEGRATION_CONNECT_ACCOUNT = PermissionData(
|
|
306
|
+
name="Connect Account",
|
|
307
|
+
description="Connect Account",
|
|
308
|
+
module=PermissionModule.EDS,
|
|
309
|
+
resource=PermissionResource.INTEGRATION,
|
|
310
|
+
action=PermissionAction.CONNECT_ACCOUNT
|
|
311
|
+
)
|
|
312
|
+
|
|
262
313
|
EDS_DASHBOARD_VIEW = PermissionData(
|
|
263
314
|
name="View EDS Dashboard",
|
|
264
315
|
description="View EDS Dashboard",
|
|
@@ -692,7 +743,7 @@ class PermissionConstants:
|
|
|
692
743
|
WORKFORCE_AGENT_CREATE = PermissionData(
|
|
693
744
|
name="Create Workforce Agent",
|
|
694
745
|
description="Permission to create workforce agents",
|
|
695
|
-
module=PermissionModule.
|
|
746
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
696
747
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
697
748
|
action=PermissionAction.CREATE,
|
|
698
749
|
)
|
|
@@ -700,7 +751,7 @@ class PermissionConstants:
|
|
|
700
751
|
WORKFORCE_AGENT_VIEW = PermissionData(
|
|
701
752
|
name="View Workforce Agent",
|
|
702
753
|
description="Permission to view workforce agents",
|
|
703
|
-
module=PermissionModule.
|
|
754
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
704
755
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
705
756
|
action=PermissionAction.VIEW,
|
|
706
757
|
)
|
|
@@ -708,7 +759,7 @@ class PermissionConstants:
|
|
|
708
759
|
WORKFORCE_AGENT_EDIT = PermissionData(
|
|
709
760
|
name="Edit Workforce Agent",
|
|
710
761
|
description="Permission to edit workforce agents",
|
|
711
|
-
module=PermissionModule.
|
|
762
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
712
763
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
713
764
|
action=PermissionAction.EDIT,
|
|
714
765
|
)
|
|
@@ -716,7 +767,7 @@ class PermissionConstants:
|
|
|
716
767
|
WORKFORCE_AGENT_DELETE = PermissionData(
|
|
717
768
|
name="Delete Workforce Agent",
|
|
718
769
|
description="Permission to delete workforce agents",
|
|
719
|
-
module=PermissionModule.
|
|
770
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
720
771
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
721
772
|
action=PermissionAction.DELETE,
|
|
722
773
|
)
|
|
@@ -724,7 +775,7 @@ class PermissionConstants:
|
|
|
724
775
|
WORKFORCE_AGENT_MANAGE_DOCUMENTS = PermissionData(
|
|
725
776
|
name="Manage Agent Documents",
|
|
726
777
|
description="Permission to manage workforce agent documents",
|
|
727
|
-
module=PermissionModule.
|
|
778
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
728
779
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
729
780
|
action=PermissionAction.MANAGE_DOCUMENTS,
|
|
730
781
|
)
|
|
@@ -732,7 +783,7 @@ class PermissionConstants:
|
|
|
732
783
|
WORKFORCE_AGENT_MANAGE_CONTAINERS = PermissionData(
|
|
733
784
|
name="Manage Agent Containers",
|
|
734
785
|
description="Permission to manage workforce agent containers",
|
|
735
|
-
module=PermissionModule.
|
|
786
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
736
787
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
737
788
|
action=PermissionAction.MANAGE_CONTAINERS,
|
|
738
789
|
)
|
|
@@ -740,7 +791,7 @@ class PermissionConstants:
|
|
|
740
791
|
WORKFORCE_AGENT_MANAGE_DATA_SOURCES = PermissionData(
|
|
741
792
|
name="Manage Agent Data Sources",
|
|
742
793
|
description="Permission to manage workforce agent data sources",
|
|
743
|
-
module=PermissionModule.
|
|
794
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
744
795
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
745
796
|
action=PermissionAction.MANAGE_DATA_SOURCES,
|
|
746
797
|
)
|
|
@@ -748,7 +799,7 @@ class PermissionConstants:
|
|
|
748
799
|
WORKFORCE_AGENT_MANAGE_INSTRUCTIONS = PermissionData(
|
|
749
800
|
name="Manage Agent Instructions",
|
|
750
801
|
description="Permission to manage workforce agent instructions",
|
|
751
|
-
module=PermissionModule.
|
|
802
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
752
803
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
753
804
|
action=PermissionAction.MANAGE_INSTRUCTIONS,
|
|
754
805
|
)
|
|
@@ -756,7 +807,7 @@ class PermissionConstants:
|
|
|
756
807
|
WORKFORCE_AGENT_MANAGE_TOOLS = PermissionData(
|
|
757
808
|
name="Manage Agent Tools",
|
|
758
809
|
description="Permission to manage workforce agent tools",
|
|
759
|
-
module=PermissionModule.
|
|
810
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
760
811
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
761
812
|
action=PermissionAction.MANAGE_TOOLS,
|
|
762
813
|
)
|
|
@@ -764,7 +815,7 @@ class PermissionConstants:
|
|
|
764
815
|
WORKFORCE_AGENT_MANAGE_TRIGGERS = PermissionData(
|
|
765
816
|
name="Manage Agent Triggers",
|
|
766
817
|
description="Permission to manage workforce agent triggers",
|
|
767
|
-
module=PermissionModule.
|
|
818
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
768
819
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
769
820
|
action=PermissionAction.MANAGE_TRIGGERS,
|
|
770
821
|
)
|
|
@@ -772,7 +823,7 @@ class PermissionConstants:
|
|
|
772
823
|
WORKFORCE_AGENT_PUBLISH = PermissionData(
|
|
773
824
|
name="Publish Agent",
|
|
774
825
|
description="Permission to publish workforce agents",
|
|
775
|
-
module=PermissionModule.
|
|
826
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
776
827
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
777
828
|
action=PermissionAction.PUBLISH,
|
|
778
829
|
)
|
|
@@ -780,7 +831,7 @@ class PermissionConstants:
|
|
|
780
831
|
WORKFORCE_AGENT_OPERATE = PermissionData(
|
|
781
832
|
name="Operate Agent",
|
|
782
833
|
description="Permission to operate workforce agents",
|
|
783
|
-
module=PermissionModule.
|
|
834
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
784
835
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
785
836
|
action=PermissionAction.OPERATE,
|
|
786
837
|
)
|
|
@@ -788,7 +839,7 @@ class PermissionConstants:
|
|
|
788
839
|
WORKFORCE_AGENT_MODIFY_PUBLISHED = PermissionData(
|
|
789
840
|
name="Modify Published Agent",
|
|
790
841
|
description="Permission to modify published workforce agents",
|
|
791
|
-
module=PermissionModule.
|
|
842
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
792
843
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
793
844
|
action=PermissionAction.MODIFY_PUBLISHED,
|
|
794
845
|
)
|
|
@@ -796,7 +847,7 @@ class PermissionConstants:
|
|
|
796
847
|
WORKFORCE_AGENT_INITIALIZE = PermissionData(
|
|
797
848
|
name="Initialize Agent",
|
|
798
849
|
description="Permission to initialize workforce agents",
|
|
799
|
-
module=PermissionModule.
|
|
850
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
800
851
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
801
852
|
action=PermissionAction.INITIALIZE,
|
|
802
853
|
)
|
|
@@ -804,7 +855,7 @@ class PermissionConstants:
|
|
|
804
855
|
WORKFORCE_AGENT_ACCESS_SHAREPOINT = PermissionData(
|
|
805
856
|
name="Access SharePoint",
|
|
806
857
|
description="Permission for workforce agents to access SharePoint",
|
|
807
|
-
module=PermissionModule.
|
|
858
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
808
859
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
809
860
|
action=PermissionAction.ACCESS_SHAREPOINT,
|
|
810
861
|
)
|
|
@@ -812,7 +863,7 @@ class PermissionConstants:
|
|
|
812
863
|
WORKFORCE_AGENT_ACCESS_AZURE_STORAGE = PermissionData(
|
|
813
864
|
name="Access Azure Storage",
|
|
814
865
|
description="Permission for workforce agents to access Azure Storage",
|
|
815
|
-
module=PermissionModule.
|
|
866
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
816
867
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
817
868
|
action=PermissionAction.ACCESS_AZURE_STORAGE,
|
|
818
869
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/auth/auth_functions.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/auth/jwt_functions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/base_model.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/gov_casbin_rule.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/permissions.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/rbac_model.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/role_permission.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/user_permission.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/models/user_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abs_auth_rbac_core-0.2.2 → abs_auth_rbac_core-0.2.4}/abs_auth_rbac_core/schema/permission.py
RENAMED
|
File without changes
|
|
File without changes
|