import { UmbDocumentPermissionServerDataSource } from './document-permission.server.data.js';
import { UmbControllerBase } from '../../../../../../libs/class-api/index.js';
export class UmbDocumentPermissionRepository extends UmbControllerBase {
    #permissionSource;
    constructor(host) {
        super(host);
        this.#permissionSource = new UmbDocumentPermissionServerDataSource(this);
    }
    async requestPermissions(id) {
        if (!id)
            throw new Error(`id is required`);
        return this.#permissionSource.requestPermissions(id);
    }
}
export default UmbDocumentPermissionRepository;
