File tree Expand file tree Collapse file tree 1 file changed +31
-6
lines changed
Expand file tree Collapse file tree 1 file changed +31
-6
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,34 @@ paths:
404404 $ref : ' #/responses/Error'
405405
406406definitions :
407+ AuthStatement :
408+ type : object
409+ title : Auth Statement
410+ description : A statement defines what a user or device is allowed to do
411+ properties :
412+ actions :
413+ type : array
414+ items :
415+ type : string
416+ description : A list of actions the user is allowed to perform
417+ resource :
418+ type : array
419+ items :
420+ type : string
421+ description : A list of resources the user is allowed to access
422+ workspace :
423+ type : string
424+ description : The workspace the user is allowed to access
425+ AuthPolicy :
426+ type : object
427+ title : Auth Policy
428+ description : A policy defines what a user or device is allowed to do
429+ properties :
430+ statements :
431+ type : array
432+ items :
433+ $ref : ' #/definitions/AuthStatement'
434+ description : A list of statements defining the actions the user can perform on a resource in a workspace
407435 PolicyTemplate :
408436 type : object
409437 title : Policy Template
@@ -464,9 +492,6 @@ definitions:
464492 workspace :
465493 type : string
466494 description : The workspace the user is allowed to access
467- type :
468- type : string
469- description : The type of the resources these actions apply
470495 description :
471496 type : string
472497 description : A description for this statement
@@ -616,8 +641,8 @@ definitions:
616641 policies :
617642 type : array
618643 items :
619- $ref : ' #/definitions/Policy '
620- description : A list of policy definitions including statements and permissions
644+ type : string
645+ description : A list of policy ids to reference existing policies
621646 status :
622647 type : string
623648 enum : [pending, active]
@@ -979,7 +1004,7 @@ responses:
9791004 policies :
9801005 type : array
9811006 items :
982- $ref : ' #/definitions/Policy '
1007+ $ref : ' #/definitions/AuthPolicy '
9831008 properties :
9841009 type : object
9851010 description : A map of key value properties
You can’t perform that action at this time.
0 commit comments