Skip to content

FlagsResource

type FlagsResource =
| {
projectKey: string;
type: "project";
}
| {
environmentKey: string;
projectKey: string;
type: "environment";
}
| {
environmentKey: string;
flagKey: string;
projectKey: string;
type: "flag";
}
| {
environmentKey: string;
projectKey: string;
type: "snapshot";
version?: string;
}
| {
environmentKey?: string;
projectKey: string;
type: "audit";
};

Defined in: authorization/contract.ts:38

The resource an action targets.