abs-auth-rbac-core 0.2.3__py3-none-any.whl → 0.2.5__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.
Potentially problematic release.
This version of abs-auth-rbac-core might be problematic. Click here for more details.
- abs_auth_rbac_core/util/permission_constants.py +144 -17
- {abs_auth_rbac_core-0.2.3.dist-info → abs_auth_rbac_core-0.2.5.dist-info}/METADATA +1 -1
- {abs_auth_rbac_core-0.2.3.dist-info → abs_auth_rbac_core-0.2.5.dist-info}/RECORD +4 -4
- {abs_auth_rbac_core-0.2.3.dist-info → abs_auth_rbac_core-0.2.5.dist-info}/WHEEL +0 -0
|
@@ -158,6 +158,7 @@ class PermissionAction(str, Enum):
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
class PermissionModule(str, Enum):
|
|
161
|
+
AUTOMATION_BUILDER = "AUTOMATION_BUILDER"
|
|
161
162
|
EDS_EPAR = "EDS_EPAR"
|
|
162
163
|
PERMIT_PROCESSING = "PERMIT_PROCESSING"
|
|
163
164
|
EMAIL_PROCESS = "EMAIL_PROCESS"
|
|
@@ -170,6 +171,7 @@ class PermissionModule(str, Enum):
|
|
|
170
171
|
ENTITY_MANAGER="ENTITY_MANAGER"
|
|
171
172
|
ASL = "ASL"
|
|
172
173
|
EDS = "EDS"
|
|
174
|
+
WORKFORCE_AGENT = "WORKFORCE_AGENT"
|
|
173
175
|
|
|
174
176
|
|
|
175
177
|
|
|
@@ -255,6 +257,11 @@ class PermissionResource(str, Enum):
|
|
|
255
257
|
ASL = "ASL"
|
|
256
258
|
DATA_IMPORT = "DATA_IMPORT"
|
|
257
259
|
INTEGRATION = "INTEGRATION"
|
|
260
|
+
AUTOMATION = "AUTOMATION"
|
|
261
|
+
AUTOMATION_TRIGGER = "AUTOMATION_TRIGGER"
|
|
262
|
+
AUTOMATION_ACTION = "AUTOMATION_ACTION"
|
|
263
|
+
AUTOMATION_INPUT = "AUTOMATION_INPUT"
|
|
264
|
+
AUTOMATION_HISTORY = "AUTOMATION_HISTORY"
|
|
258
265
|
|
|
259
266
|
|
|
260
267
|
class PermissionData(NamedTuple):
|
|
@@ -266,7 +273,127 @@ class PermissionData(NamedTuple):
|
|
|
266
273
|
|
|
267
274
|
|
|
268
275
|
class PermissionConstants:
|
|
269
|
-
|
|
276
|
+
# Automation Builder Permissions
|
|
277
|
+
AUTOMATION_HISTORY_VIEW = PermissionData(
|
|
278
|
+
name="View Automation History",
|
|
279
|
+
description="Permission to view automation history",
|
|
280
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
281
|
+
resource=PermissionResource.AUTOMATION_HISTORY,
|
|
282
|
+
action=PermissionAction.VIEW,
|
|
283
|
+
)
|
|
284
|
+
AUTOMATION_CREATE = PermissionData(
|
|
285
|
+
name="Create Automation",
|
|
286
|
+
description="Permission to create automation",
|
|
287
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
288
|
+
resource=PermissionResource.AUTOMATION,
|
|
289
|
+
action=PermissionAction.CREATE,
|
|
290
|
+
)
|
|
291
|
+
AUTOMATION_VIEW = PermissionData(
|
|
292
|
+
name="View Automation",
|
|
293
|
+
description="Permission to view automation",
|
|
294
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
295
|
+
resource=PermissionResource.AUTOMATION,
|
|
296
|
+
action=PermissionAction.VIEW,
|
|
297
|
+
)
|
|
298
|
+
AUTOMATION_EDIT = PermissionData(
|
|
299
|
+
name="Edit Automation",
|
|
300
|
+
description="Permission to edit automation",
|
|
301
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
302
|
+
resource=PermissionResource.AUTOMATION,
|
|
303
|
+
action=PermissionAction.EDIT,
|
|
304
|
+
)
|
|
305
|
+
AUTOMATION_DELETE = PermissionData(
|
|
306
|
+
name="Delete Automation",
|
|
307
|
+
description="Permission to delete automation",
|
|
308
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
309
|
+
resource=PermissionResource.AUTOMATION,
|
|
310
|
+
action=PermissionAction.DELETE,
|
|
311
|
+
)
|
|
312
|
+
AUTOMATION_INPUT_CREATE = PermissionData(
|
|
313
|
+
name="Create Automation Input",
|
|
314
|
+
description="Permission to create automation input",
|
|
315
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
316
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
317
|
+
action=PermissionAction.CREATE,
|
|
318
|
+
)
|
|
319
|
+
AUTOMATION_INPUT_VIEW = PermissionData(
|
|
320
|
+
name="View Automation Input",
|
|
321
|
+
description="Permission to view automation input",
|
|
322
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
323
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
324
|
+
action=PermissionAction.VIEW,
|
|
325
|
+
)
|
|
326
|
+
AUTOMATION_INPUT_EDIT = PermissionData(
|
|
327
|
+
name="Edit Automation Input",
|
|
328
|
+
description="Permission to edit automation input",
|
|
329
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
330
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
331
|
+
action=PermissionAction.EDIT,
|
|
332
|
+
)
|
|
333
|
+
AUTOMATION_INPUT_DELETE = PermissionData(
|
|
334
|
+
name="Delete Automation Input",
|
|
335
|
+
description="Permission to delete automation input",
|
|
336
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
337
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
338
|
+
action=PermissionAction.DELETE,
|
|
339
|
+
)
|
|
340
|
+
AUTOMATION_ACTION_CREATE = PermissionData(
|
|
341
|
+
name="Create Automation Action",
|
|
342
|
+
description="Permission to create automation action",
|
|
343
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
344
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
345
|
+
action=PermissionAction.CREATE,
|
|
346
|
+
)
|
|
347
|
+
AUTOMATION_ACTION_VIEW = PermissionData(
|
|
348
|
+
name="View Automation Action",
|
|
349
|
+
description="Permission to view automation action",
|
|
350
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
351
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
352
|
+
action=PermissionAction.VIEW,
|
|
353
|
+
)
|
|
354
|
+
AUTOMATION_ACTION_EDIT = PermissionData(
|
|
355
|
+
name="Edit Automation Action",
|
|
356
|
+
description="Permission to edit automation action",
|
|
357
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
358
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
359
|
+
action=PermissionAction.EDIT,
|
|
360
|
+
)
|
|
361
|
+
AUTOMATION_ACTION_DELETE = PermissionData(
|
|
362
|
+
name="Delete Automation Action",
|
|
363
|
+
description="Permission to delete automation action",
|
|
364
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
365
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
366
|
+
action=PermissionAction.DELETE,
|
|
367
|
+
)
|
|
368
|
+
AUTOMATION_TRIGGER_CREATE = PermissionData(
|
|
369
|
+
name="Create Automation Trigger",
|
|
370
|
+
description="Permission to create automation trigger",
|
|
371
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
372
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
373
|
+
action=PermissionAction.CREATE,
|
|
374
|
+
)
|
|
375
|
+
AUTOMATION_TRIGGER_VIEW = PermissionData(
|
|
376
|
+
name="View Automation Trigger",
|
|
377
|
+
description="Permission to view automation trigger",
|
|
378
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
379
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
380
|
+
action=PermissionAction.VIEW,
|
|
381
|
+
)
|
|
382
|
+
AUTOMATION_TRIGGER_EDIT = PermissionData(
|
|
383
|
+
name="Edit Automation Trigger",
|
|
384
|
+
description="Permission to edit automation trigger",
|
|
385
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
386
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
387
|
+
action=PermissionAction.EDIT,
|
|
388
|
+
)
|
|
389
|
+
AUTOMATION_TRIGGER_DELETE = PermissionData(
|
|
390
|
+
name="Delete Automation Trigger",
|
|
391
|
+
description="Permission to delete automation trigger",
|
|
392
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
393
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
394
|
+
action=PermissionAction.DELETE,
|
|
395
|
+
)
|
|
396
|
+
|
|
270
397
|
# EDS Data Import Permissions
|
|
271
398
|
EDS_DATA_IMPORT_CONNECT_ACCOUNT = PermissionData(
|
|
272
399
|
name="Connect Account",
|
|
@@ -742,7 +869,7 @@ class PermissionConstants:
|
|
|
742
869
|
WORKFORCE_AGENT_CREATE = PermissionData(
|
|
743
870
|
name="Create Workforce Agent",
|
|
744
871
|
description="Permission to create workforce agents",
|
|
745
|
-
module=PermissionModule.
|
|
872
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
746
873
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
747
874
|
action=PermissionAction.CREATE,
|
|
748
875
|
)
|
|
@@ -750,7 +877,7 @@ class PermissionConstants:
|
|
|
750
877
|
WORKFORCE_AGENT_VIEW = PermissionData(
|
|
751
878
|
name="View Workforce Agent",
|
|
752
879
|
description="Permission to view workforce agents",
|
|
753
|
-
module=PermissionModule.
|
|
880
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
754
881
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
755
882
|
action=PermissionAction.VIEW,
|
|
756
883
|
)
|
|
@@ -758,7 +885,7 @@ class PermissionConstants:
|
|
|
758
885
|
WORKFORCE_AGENT_EDIT = PermissionData(
|
|
759
886
|
name="Edit Workforce Agent",
|
|
760
887
|
description="Permission to edit workforce agents",
|
|
761
|
-
module=PermissionModule.
|
|
888
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
762
889
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
763
890
|
action=PermissionAction.EDIT,
|
|
764
891
|
)
|
|
@@ -766,7 +893,7 @@ class PermissionConstants:
|
|
|
766
893
|
WORKFORCE_AGENT_DELETE = PermissionData(
|
|
767
894
|
name="Delete Workforce Agent",
|
|
768
895
|
description="Permission to delete workforce agents",
|
|
769
|
-
module=PermissionModule.
|
|
896
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
770
897
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
771
898
|
action=PermissionAction.DELETE,
|
|
772
899
|
)
|
|
@@ -774,7 +901,7 @@ class PermissionConstants:
|
|
|
774
901
|
WORKFORCE_AGENT_MANAGE_DOCUMENTS = PermissionData(
|
|
775
902
|
name="Manage Agent Documents",
|
|
776
903
|
description="Permission to manage workforce agent documents",
|
|
777
|
-
module=PermissionModule.
|
|
904
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
778
905
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
779
906
|
action=PermissionAction.MANAGE_DOCUMENTS,
|
|
780
907
|
)
|
|
@@ -782,7 +909,7 @@ class PermissionConstants:
|
|
|
782
909
|
WORKFORCE_AGENT_MANAGE_CONTAINERS = PermissionData(
|
|
783
910
|
name="Manage Agent Containers",
|
|
784
911
|
description="Permission to manage workforce agent containers",
|
|
785
|
-
module=PermissionModule.
|
|
912
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
786
913
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
787
914
|
action=PermissionAction.MANAGE_CONTAINERS,
|
|
788
915
|
)
|
|
@@ -790,7 +917,7 @@ class PermissionConstants:
|
|
|
790
917
|
WORKFORCE_AGENT_MANAGE_DATA_SOURCES = PermissionData(
|
|
791
918
|
name="Manage Agent Data Sources",
|
|
792
919
|
description="Permission to manage workforce agent data sources",
|
|
793
|
-
module=PermissionModule.
|
|
920
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
794
921
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
795
922
|
action=PermissionAction.MANAGE_DATA_SOURCES,
|
|
796
923
|
)
|
|
@@ -798,7 +925,7 @@ class PermissionConstants:
|
|
|
798
925
|
WORKFORCE_AGENT_MANAGE_INSTRUCTIONS = PermissionData(
|
|
799
926
|
name="Manage Agent Instructions",
|
|
800
927
|
description="Permission to manage workforce agent instructions",
|
|
801
|
-
module=PermissionModule.
|
|
928
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
802
929
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
803
930
|
action=PermissionAction.MANAGE_INSTRUCTIONS,
|
|
804
931
|
)
|
|
@@ -806,7 +933,7 @@ class PermissionConstants:
|
|
|
806
933
|
WORKFORCE_AGENT_MANAGE_TOOLS = PermissionData(
|
|
807
934
|
name="Manage Agent Tools",
|
|
808
935
|
description="Permission to manage workforce agent tools",
|
|
809
|
-
module=PermissionModule.
|
|
936
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
810
937
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
811
938
|
action=PermissionAction.MANAGE_TOOLS,
|
|
812
939
|
)
|
|
@@ -814,7 +941,7 @@ class PermissionConstants:
|
|
|
814
941
|
WORKFORCE_AGENT_MANAGE_TRIGGERS = PermissionData(
|
|
815
942
|
name="Manage Agent Triggers",
|
|
816
943
|
description="Permission to manage workforce agent triggers",
|
|
817
|
-
module=PermissionModule.
|
|
944
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
818
945
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
819
946
|
action=PermissionAction.MANAGE_TRIGGERS,
|
|
820
947
|
)
|
|
@@ -822,7 +949,7 @@ class PermissionConstants:
|
|
|
822
949
|
WORKFORCE_AGENT_PUBLISH = PermissionData(
|
|
823
950
|
name="Publish Agent",
|
|
824
951
|
description="Permission to publish workforce agents",
|
|
825
|
-
module=PermissionModule.
|
|
952
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
826
953
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
827
954
|
action=PermissionAction.PUBLISH,
|
|
828
955
|
)
|
|
@@ -830,7 +957,7 @@ class PermissionConstants:
|
|
|
830
957
|
WORKFORCE_AGENT_OPERATE = PermissionData(
|
|
831
958
|
name="Operate Agent",
|
|
832
959
|
description="Permission to operate workforce agents",
|
|
833
|
-
module=PermissionModule.
|
|
960
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
834
961
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
835
962
|
action=PermissionAction.OPERATE,
|
|
836
963
|
)
|
|
@@ -838,7 +965,7 @@ class PermissionConstants:
|
|
|
838
965
|
WORKFORCE_AGENT_MODIFY_PUBLISHED = PermissionData(
|
|
839
966
|
name="Modify Published Agent",
|
|
840
967
|
description="Permission to modify published workforce agents",
|
|
841
|
-
module=PermissionModule.
|
|
968
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
842
969
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
843
970
|
action=PermissionAction.MODIFY_PUBLISHED,
|
|
844
971
|
)
|
|
@@ -846,7 +973,7 @@ class PermissionConstants:
|
|
|
846
973
|
WORKFORCE_AGENT_INITIALIZE = PermissionData(
|
|
847
974
|
name="Initialize Agent",
|
|
848
975
|
description="Permission to initialize workforce agents",
|
|
849
|
-
module=PermissionModule.
|
|
976
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
850
977
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
851
978
|
action=PermissionAction.INITIALIZE,
|
|
852
979
|
)
|
|
@@ -854,7 +981,7 @@ class PermissionConstants:
|
|
|
854
981
|
WORKFORCE_AGENT_ACCESS_SHAREPOINT = PermissionData(
|
|
855
982
|
name="Access SharePoint",
|
|
856
983
|
description="Permission for workforce agents to access SharePoint",
|
|
857
|
-
module=PermissionModule.
|
|
984
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
858
985
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
859
986
|
action=PermissionAction.ACCESS_SHAREPOINT,
|
|
860
987
|
)
|
|
@@ -862,7 +989,7 @@ class PermissionConstants:
|
|
|
862
989
|
WORKFORCE_AGENT_ACCESS_AZURE_STORAGE = PermissionData(
|
|
863
990
|
name="Access Azure Storage",
|
|
864
991
|
description="Permission for workforce agents to access Azure Storage",
|
|
865
|
-
module=PermissionModule.
|
|
992
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
866
993
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
867
994
|
action=PermissionAction.ACCESS_AZURE_STORAGE,
|
|
868
995
|
)
|
|
@@ -21,7 +21,7 @@ abs_auth_rbac_core/rbac/service.py,sha256=zzHvbROqUpgKSLghJ7bDnxDHWkF1tyMG9XObxu
|
|
|
21
21
|
abs_auth_rbac_core/schema/__init__.py,sha256=v9xibJ8Wr9k0u6PEYNK0LCGUJD71SB5vxu9BZG0S7tM,46
|
|
22
22
|
abs_auth_rbac_core/schema/permission.py,sha256=XvxPU68FY0PFgkF4GR2bSrzNvFB8c8OgY_d0JOJvMc8,203
|
|
23
23
|
abs_auth_rbac_core/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
abs_auth_rbac_core/util/permission_constants.py,sha256=
|
|
25
|
-
abs_auth_rbac_core-0.2.
|
|
26
|
-
abs_auth_rbac_core-0.2.
|
|
27
|
-
abs_auth_rbac_core-0.2.
|
|
24
|
+
abs_auth_rbac_core/util/permission_constants.py,sha256=EHM4ZkQmMWR-AyoSEf-pJL-EC_eZ4Q_JEp9w62GknHY,102747
|
|
25
|
+
abs_auth_rbac_core-0.2.5.dist-info/METADATA,sha256=L5Uc-Fvy2tCVlZDHa017wjFKX8fA0K_XK84k2fe6m0E,23498
|
|
26
|
+
abs_auth_rbac_core-0.2.5.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
27
|
+
abs_auth_rbac_core-0.2.5.dist-info/RECORD,,
|
|
File without changes
|