Sanity Library Reference Docs
    Preparing search index...

    Interface BlueprintProjectRoleResourceBeta

    A custom role resource that is tied to a specific project This feature is subject to breaking changes.

    interface BlueprintProjectRoleResource {
        appliesToRobots: boolean;
        appliesToUsers: boolean;
        description?: string;
        name: string;
        permissions: RolePermission[];
        resourceId: string;
        resourceType: "project";
        title: string;
        type: "sanity.access.role";
    }

    Hierarchy (View Summary)

    Index

    Properties

    appliesToRobots: boolean
    appliesToUsers: boolean
    description?: string
    name: string
    permissions: RolePermission[]

    Type declaration

    A permission definition for a role. This feature is subject to breaking changes.

    • Betaaction: string

      Permission action (e.g., 'read', 'mode')

    • Betaname: string

      Predefined permission name (e.g., 'sanity-all-documents')

    • Optional Betaparams?: Record<string, unknown>

      Additional parameters for the permission

    resourceId: string
    resourceType: "project"
    title: string
    type: "sanity.access.role"