Function: isTenantActor()
isTenantActor(
actor):actor is { kind: "tenant"; roles: string[]; scopePath: string; subjectId: string; tenant: string }
Defined in: packages/contracts/src/envelope.ts:95
Whether an actor is a tenant actor.
Parameters
actor
{ kind: "tenant"; roles: string[]; scopePath: string; subjectId: string; tenant: string; } | { kind: "platform"; roles: string[]; scopePath: "/"; subjectId: "00000000-0000-0000-0000-000000000000"; tenant: "platform"; }
A validated actor.
Returns
actor is { kind: "tenant"; roles: string[]; scopePath: string; subjectId: string; tenant: string }
true for a tenant actor; narrows the type.