|
|
@@ -301,6 +301,11 @@ export const RoleCreateInputSchema = z
|
|
|
.max(50, 'Role code cannot exceed 50 characters')
|
|
|
.optional()
|
|
|
.describe('Role code for permission checks'),
|
|
|
+ permissions: z
|
|
|
+ .array(z.string())
|
|
|
+ .min(1, 'Permissions must have at least one item')
|
|
|
+ .optional()
|
|
|
+ .describe('List of permission strings for the role'),
|
|
|
status: z
|
|
|
.number()
|
|
|
.int()
|
|
|
@@ -337,6 +342,10 @@ export const RoleUpdateInputSchema = z
|
|
|
.max(50, 'Role code cannot exceed 50 characters')
|
|
|
.optional()
|
|
|
.describe('Role code'),
|
|
|
+ permissions: z
|
|
|
+ .array(z.string())
|
|
|
+ .optional()
|
|
|
+ .describe('List of permission strings for the role'),
|
|
|
status: z
|
|
|
.number()
|
|
|
.int()
|