Type Alias: PermissionAttachedEvent
ts
type PermissionAttachedEvent = object & PermissionTarget & RbacEventBase;Defined in: packages/core/src/events.ts:58
Permissions were attached to a subject or a role. Only newly attached permissions are listed, plus, for a subject with an expiry-enabled adapter, held ones whose expiry the call changed.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
event | "permission.attached" | - | packages/core/src/events.ts:59 |
expiresAt? | Date | null | When these direct grants end (null = permanent). Only present for target: 'subject' when the adapter supports expiry (supportsExpiry: true). Role permissions never expire. | packages/core/src/events.ts:68 |
guardName | string | - | packages/core/src/events.ts:61 |
permissions | Permission[] | - | packages/core/src/events.ts:60 |
teamId | TeamId | The subject's team scope, or the role's teamId. | packages/core/src/events.ts:63 |
