Helper function to create a PermissionRule for a specific resource type using a PermissionResourceRef.
Zod v3 parameter schemas are deprecated, switch to a JSON Schema-compatible Standard Schema instead, such as Zod v4.
Helper function to ensure that PermissionRule definitions are typed correctly.
Use the version of createPermissionRule that accepts a resourceRef option instead.
createPermissionRule
resourceRef
Helper function to create a PermissionRule for a specific resource type using a PermissionResourceRef.