@inrupt/solid-client
Version:
Make your web apps work with Solid Pods.
19 lines (18 loc) • 765 B
TypeScript
import type { Url, UrlString } from "../../interfaces";
import type { WithAccessibleAcr } from "../acp";
/**
* ```{note}
* The ACP specification is a draft. As such, this function is experimental and
* subject to change, even in a non-major release.
* See also: https://solid.github.io/authorization-panel/acp-specification/
* ```
*
* Add a policy applying to the ACR of the given resource.
*
* @param resourceWithAcr The resource for which to add the URL of a policy
* applying to its access control resource.
* @param policyUrl A Policy URL.
* @returns The resource with its ammended access control resource.
* @since 1.16.1
*/
export declare function addAcrPolicyUrl<T extends WithAccessibleAcr>(resourceWithAcr: T, policyUrl: Url | UrlString): T;