Skip to content

EntitlementsResource

type EntitlementsResource =
| {
type: "catalog";
}
| {
customer?: string;
type: "customer";
}
| {
customer?: string;
id?: string;
plan?: string;
type: "subscription";
}
| {
customer: string;
id?: string;
type: "grant";
}
| {
customer: string;
id?: string;
type: "override";
}
| {
customer?: string;
feature?: string;
type: "usage";
}
| {
customer?: string;
type: "activity";
}
| {
customer?: string;
feature?: string;
type: "runtime";
}
| {
customer: string;
type: "portal";
};

Defined in: src/authorization/contract.ts:43

The resource an action targets. customer is absent on collection-level routes (list customers, global activity, reservation sweep).